Esempio n. 1
0
 private void btnRestore_Click(object sender, EventArgs e)
 {
     if (XtraMessageBoxHelper.ShowYesNoAndTips("确实要还原选中的数据吗?") == System.Windows.Forms.DialogResult.Yes)
     {
         Restore();
         Operate.LoadMethod();
     }
 }
Esempio n. 2
0
 private void btnClear_Click(object sender, EventArgs e)
 {
     if (XtraMessageBoxHelper.ShowYesNoAndTips("确实要清空当前数据列表吗?删除后数据无法恢复") == System.Windows.Forms.DialogResult.Yes)
     {
         List.SelectAllMethod();
         Delete();
     }
 }
Esempio n. 3
0
 void List_BeforeDelete(object sender, ListDeleteEventArgs e)
 {
     if (XtraMessageBoxHelper.ShowYesNoAndTips("确实要彻底删除选中的数据吗?删除后数据无法恢复") == System.Windows.Forms.DialogResult.Yes)
     {
         Delete();
     }
     e.IsSuccess = false;
 }