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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue