This commit is contained in:
Aigio Liu
2021-05-03 00:56:54 +08:00
parent ebc38453e4
commit c191ba851f
@@ -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)
{
// 进入第二步时,如果关闭窗口,则需二次确认
// 进入第二步时,如果关闭窗口,则需二次确认
e.Cancel = true;
var r = await MessageBoxCompat.ShowAsync(AppResources.UnsavedEditingWillBeDiscarded, AppResources.Warning, MessageBoxButtonCompat.OKCancel);
if (r == MessageBoxResultCompat.OK)