Exemple #1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (cust_id != 0)
     {
         DialogResult result = MessageBox.Show("Are You Sure To Remove Record From Database?", "Movie System", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
         if (result == DialogResult.Yes)
         {
             string message = "";
             if (operation.DeleteCustomerDetails(cust_id))
             {
                 message = "Customer Details are Removed from Database";
                 cust_id = 0;
                 LoadDB();
             }
             else
             {
                 message = "There are some failure in removing Customer Details in Database";
             }
             MessageBox.Show(message);
         }
     }
 }