Example #1
0
 private void cancelBTN_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure you wish to delete this booking?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1)
         == System.Windows.Forms.DialogResult.Yes)
     {
         Console.WriteLine("------------- Delete clicked");
         db.DeleteBooking(existingBooking);
         // update sim info with new booking
         bsw.UpdateSimPanelBookingInformation(selSimMac, null, true);
         bsw.UpdatedBookingInformation();
         Console.WriteLine("------------- CLOSING");
         this.Close();
     }
 }