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