mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-25 02:13:27 -04:00
Make fields readonly Remove unnecessary casts Format document Remove unnecessary usings Sort usings Use file-level namespaces Order modifiers
30 lines
682 B
C#
30 lines
682 B
C#
using Avalonia.Controls;
|
|
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);
|
|
}
|
|
}
|