重构了代码

This commit is contained in:
2025-07-02 22:07:16 +08:00
parent 31f6cf64f4
commit b6519ae0b1
16 changed files with 326 additions and 294 deletions

View File

@@ -13,33 +13,4 @@ public partial class DeviceDialog
DataContext = viewModel;
}
private void OnPrimaryButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
{
}
private void OnCloseButtonClick(ContentDialog sender, ContentDialogButtonClickEventArgs args)
{
var deferral = args.GetDeferral();
deferral.Complete();
}
private async void TryOpenAnother(object sender, RoutedEventArgs e)
{
// try
// {
// await new TestContentDialog { Owner = Owner }.ShowAsync();
// }
// catch (Exception ex)
// {
// ErrorText.Text = ex.Message;
// ErrorText.Visibility = Visibility.Visible;
// }
}
private void OnClosed(ContentDialog sender, ContentDialogClosedEventArgs args)
{
// ErrorText.Text = string.Empty;
// ErrorText.Visibility = Visibility.Collapsed;
}
}