Added form size and position persistance to audio decode forms.
This commit is contained in:
parent
37970222f3
commit
0b8084bc03
@ -1,10 +1,17 @@
|
|||||||
using DataLayer;
|
using DataLayer;
|
||||||
|
using FileManager;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibationWinForms.BookLiberation
|
namespace LibationWinForms.BookLiberation
|
||||||
{
|
{
|
||||||
class AudioConvertForm : AudioDecodeForm
|
class AudioConvertForm : AudioDecodeForm
|
||||||
{
|
{
|
||||||
|
public AudioConvertForm()
|
||||||
|
{
|
||||||
|
this.Load += (_, _) => this.RestoreSizeAndLocation(Configuration.Instance);
|
||||||
|
this.FormClosing += (_, _) => this.SaveSizeAndLocation(Configuration.Instance);
|
||||||
|
}
|
||||||
|
|
||||||
#region AudioDecodeForm overrides
|
#region AudioDecodeForm overrides
|
||||||
public override string DecodeActionName => "Converting";
|
public override string DecodeActionName => "Converting";
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
@ -1,10 +1,17 @@
|
|||||||
using DataLayer;
|
using DataLayer;
|
||||||
|
using FileManager;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace LibationWinForms.BookLiberation
|
namespace LibationWinForms.BookLiberation
|
||||||
{
|
{
|
||||||
class AudioDecryptForm : AudioDecodeForm
|
class AudioDecryptForm : AudioDecodeForm
|
||||||
{
|
{
|
||||||
|
public AudioDecryptForm()
|
||||||
|
{
|
||||||
|
this.Load += (_, _) => this.RestoreSizeAndLocation(Configuration.Instance);
|
||||||
|
this.FormClosing += (_, _) => this.SaveSizeAndLocation(Configuration.Instance);
|
||||||
|
}
|
||||||
|
|
||||||
#region AudioDecodeForm overrides
|
#region AudioDecodeForm overrides
|
||||||
public override string DecodeActionName => "Decrypting";
|
public override string DecodeActionName => "Decrypting";
|
||||||
#endregion
|
#endregion
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user