/// <summary> /// 提交新建信息 /// </summary> private async void SubmitAddedInfo() { if (await vm.AddPersonOnDisplay()) { await new ContentDialog() { Title = ResourceLoader.GetString("AddPersonSuccessDialog_Title"), PrimaryButtonText = ResourceLoader.GetString("AddPersonSuccessDialog_PrimaryButtonText") }.ShowAsync(); await vm.Init(); } else { await new ContentDialog() { Content = ResourceLoader.GetString("AddPersonFailDialog_Content"), Title = ResourceLoader.GetString("AddPersonFailDialog_Title"), PrimaryButtonText = ResourceLoader.GetString("AddPersonFailDialog_PrimaryButtonText") }.ShowAsync(); } }