void delMap_DoTypeCompleted(object sender, DoTypeCompletedEventArgs e) { if (e.Result == null) { this.DialogResult = true; this.HisMainPage.BindFormTree(); return; } MessageBox.Show(e.Result, "错误", MessageBoxButton.OK); }
void da_DoTypeCompleted(object sender, DoTypeCompletedEventArgs e) { if (e.Result != null) { MessageBox.Show(e.Result, "错误", MessageBoxButton.OK); return; } MessageBox.Show("删除成功", "提示", MessageBoxButton.OK); this.tabItem1.IsSelected = true; this.TB_No.Text = ""; this.TB_Name.Text = ""; this.listBox3.Items.Clear(); this.listBox1.Items.Clear(); this.BindData(); }