Beispiel #1
0
 private void btnRestoreCmt_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (IDSelected != "")
     {
         CommentModel cm = new CommentModel();
         cm.RestoreComment(Convert.ToInt32(IDSelected));
         XtraMessageBox.Show("Restore successful !!!", "Successful", MessageBoxButtons.OK, MessageBoxIcon.Information);
         CommentStaff_Load(sender, e);
     }
     else
     {
         XtraMessageBox.Show("Please choose a food item to 'restore' !!!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }