mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-01-02 10:58:43 -05:00
- Move all settings file logic into new LibationFiles class - Configuration.LibationFiles is a singleton instance of the LibationFiles class. - A LibationFiles instance is bound to a single appsettings.json path. All updates to LibationFiles location are updated in that appsettings.json file - Unify initial setup and settings validation process - Add LibationSetup which handles all startup validation of settings files and prompts users for setup if needed - Added a new LibationUiBase.Tests test project with tests for various
32 lines
635 B
C#
32 lines
635 B
C#
using LibationUiBase;
|
|
using System;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
|
|
namespace LibationWinForms.Dialogs
|
|
{
|
|
public partial class SetupDialog : Form, ILibationSetup
|
|
{
|
|
public bool IsNewUser { get; private set; }
|
|
public bool IsReturningUser { get; private set; }
|
|
|
|
public SetupDialog() => InitializeComponent();
|
|
|
|
private void newUserBtn_Click(object sender, EventArgs e)
|
|
{
|
|
IsNewUser = true;
|
|
|
|
this.DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
|
|
private void returningUserBtn_Click(object sender, EventArgs e)
|
|
{
|
|
IsReturningUser = true;
|
|
|
|
this.DialogResult = DialogResult.OK;
|
|
Close();
|
|
}
|
|
}
|
|
}
|