From c191ba851ffef6590c4d0ff2a69bdb8e20e5eeb5 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Mon, 3 May 2021 00:56:46 +0800 Subject: [PATCH] fix warn --- .../UI/Views/Windows/ChangeBindPhoneNumberWindow.axaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/ChangeBindPhoneNumberWindow.axaml.cs b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/ChangeBindPhoneNumberWindow.axaml.cs index 98c5c30c5..35e6fd2b6 100644 --- a/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/ChangeBindPhoneNumberWindow.axaml.cs +++ b/src/ST.Client.Desktop.Avalonia/Application/UI/Views/Windows/ChangeBindPhoneNumberWindow.axaml.cs @@ -28,7 +28,7 @@ namespace System.Application.UI.Views.Windows TbPhoneNumber.Focus(); } }; - void Submit(object _, KeyEventArgs e) + void Submit(object? _, KeyEventArgs e) { if (e.Key == Key.Return) { @@ -65,7 +65,7 @@ namespace System.Application.UI.Views.Windows { if (DataContext is ChangeBindPhoneNumberWindowViewModel vm && vm.CurrentStepIsNew && !vm.IsComplete) { - // 进入第二步时,如果关闭窗口,则需二次确认 + // 杩涘叆绗簩姝ユ椂锛屽鏋滃叧闂獥鍙o紝鍒欓渶浜屾纭 e.Cancel = true; var r = await MessageBoxCompat.ShowAsync(AppResources.UnsavedEditingWillBeDiscarded, AppResources.Warning, MessageBoxButtonCompat.OKCancel); if (r == MessageBoxResultCompat.OK)