mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-02-18 00:17:43 +01: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
731 B
C#
32 lines
731 B
C#
using Avalonia.Controls;
|
|
using LibationFileManager;
|
|
using LibationUiBase;
|
|
using LibationUiBase.Forms;
|
|
|
|
namespace LibationAvalonia.Dialogs
|
|
{
|
|
public partial class SetupDialog : Window, ILibationSetup
|
|
{
|
|
public bool IsNewUser { get; private set; }
|
|
public bool IsReturningUser { get; private set; }
|
|
public ComboBoxItem SelectedTheme { get; set; }
|
|
public SetupDialog()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = this;
|
|
}
|
|
|
|
public void NewUser_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
|
|
{
|
|
IsNewUser = true;
|
|
Close(DialogResult.OK);
|
|
}
|
|
|
|
public void ReturningUser_Click(object sender, Avalonia.Interactivity.RoutedEventArgs e)
|
|
{
|
|
IsReturningUser = true;
|
|
Close(DialogResult.OK);
|
|
}
|
|
}
|
|
}
|