Files
Libation/Source/LibationWinForms/Dialogs/SetupDialog.cs
MBucari e8c911e603 Improve management and validation of Libation settings
- 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
2025-11-17 10:49:23 -07:00

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();
}
}
}