Minor mods for future UI changes
This commit is contained in:
parent
e0248c2d8e
commit
936a1d60a0
10 changed files with 21 additions and 10 deletions
|
|
@ -4,7 +4,11 @@ using Dinah.Core.Threading;
|
|||
|
||||
namespace LibationWinForms.BookLiberation
|
||||
{
|
||||
public partial class AutomatedBackupsForm : Form
|
||||
public interface ILogForm
|
||||
{
|
||||
void WriteLine(string text);
|
||||
}
|
||||
public partial class AutomatedBackupsForm : Form, ILogForm
|
||||
{
|
||||
public bool KeepGoingChecked => keepGoingCb.Checked;
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,8 @@ namespace LibationWinForms.BookLiberation
|
|||
LogError += (_, tuple) => Serilog.Log.Logger.Error(tuple.Item1, tuple.Item2 ?? "Automated backup: error");
|
||||
}
|
||||
|
||||
public static LogMe RegisterForm(AutomatedBackupsForm form = null)
|
||||
public static LogMe RegisterForm() => RegisterForm<ILogForm>(null);
|
||||
public static LogMe RegisterForm<T>(T form) where T : ILogForm
|
||||
{
|
||||
var logMe = new LogMe();
|
||||
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ namespace LibationWinForms.Dialogs
|
|||
private const string COL_AccountName = nameof(AccountName);
|
||||
private const string COL_Locale = nameof(Locale);
|
||||
|
||||
private Form1 _parent { get; }
|
||||
private Form _parent { get; }
|
||||
|
||||
public AccountsDialog(Form1 parent)
|
||||
public AccountsDialog(Form parent)
|
||||
{
|
||||
_parent = parent;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ namespace LibationWinForms.Dialogs
|
|||
private const string COL_MoveUp = nameof(MoveUp);
|
||||
private const string COL_MoveDown = nameof(MoveDown);
|
||||
|
||||
private Form1 _parent { get; }
|
||||
private Form _parent { get; }
|
||||
|
||||
public EditQuickFilters(Form1 parent)
|
||||
public EditQuickFilters(Form parent)
|
||||
{
|
||||
_parent = parent;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ namespace LibationWinForms.Dialogs
|
|||
{
|
||||
public List<Account> CheckedAccounts { get; } = new List<Account>();
|
||||
|
||||
private Form1 _parent { get; }
|
||||
private Form _parent { get; }
|
||||
|
||||
public ScanAccountsDialog(Form1 parent)
|
||||
public ScanAccountsDialog(Form parent)
|
||||
{
|
||||
_parent = parent;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue