命名优化,达芬奇字体修改工具
This commit is contained in:
@@ -37,19 +37,17 @@ public partial class MainWindow
|
||||
|
||||
#region 属性
|
||||
[ObservableProperty]
|
||||
private TreeNodeItem selectedItem;
|
||||
public partial TreeNodeItem SelectedItem { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
private Area area;
|
||||
|
||||
public partial Area Area { get; set; }
|
||||
[ObservableProperty]
|
||||
public partial List<Area> SelectedListAreas { get; set; } = [];
|
||||
|
||||
[ObservableProperty]
|
||||
private string password;
|
||||
|
||||
public partial string Password { get; set; }
|
||||
[ObservableProperty]
|
||||
private string input;
|
||||
public partial string Input { get; set; }
|
||||
#endregion
|
||||
|
||||
#region 命令
|
||||
@@ -308,7 +306,7 @@ public partial class MainWindow
|
||||
}
|
||||
}
|
||||
|
||||
private async void ShowAsyncModal_Click(object sender, RoutedEventArgs e)
|
||||
private void ShowAsyncModal_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
bool? result = Modal.Confirm(this, "异步对话框", "对话框将在2s后关闭",
|
||||
async () =>
|
||||
@@ -340,11 +338,9 @@ public partial class MainWindow
|
||||
iconsWindow.ShowDialog();
|
||||
}
|
||||
|
||||
private bool _themeAnimating;
|
||||
|
||||
private async void ThemeToggle_OnCheckedChanged(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (_themeAnimating) return;
|
||||
if (sender is not ToggleButton tb) return;
|
||||
|
||||
var targetMode = tb.IsChecked == true ? ThemeMode.Dark : ThemeMode.Light;
|
||||
|
||||
Reference in New Issue
Block a user