private async void BtnClose_Click(object sender, System.Windows.RoutedEventArgs e) { if (await dialog.Question(Local.Localize("AreYouSure"))) { Environment.Exit(0); } }
/// <summary> /// 删除值 /// </summary> /// <param name="obj"></param> private async void Delete(DynamicPropertyValueDto obj) { if (await dialog.Question(Local.Localize("DeleteDynamicPropertyValueMessage"), AppCommonConsts.DialogIdentifier)) { await SetBusyAsync(async() => { await WebRequest.Execute(() => appService.Delete(obj.Id), GetAllValuesOfDynamicProperty); }); } }