Example #1
0
 private void LoadCustomerDataCheckinTable()
 {
     try
     {
         BS_Layer.BLCustomer bl = new BS_Layer.BLCustomer();
         Checkin_Datagridview_ListOfCustomer.DataSource = bl.LoadCustomer();
     }
     catch
     {
         MessageBox.Show("Can not fetch data in table Customer !");
     }
 }
Example #2
0
 private void Booking_Button_AddNewCustomer_Click(object sender, EventArgs e)
 {
     BS_Layer.BLCustomer bl = new BS_Layer.BLCustomer();
     if (bl.CreateCustomer(Booking_TextBox_CustomerName.Text, Booking_TextBox_IdentityCard.Text, Booking_TextBox_PhoneNumber.Text, Booking_TextBox_Address.Text) == true)
     {
         MessageBox.Show(" Add a new customer successfully ");
         LoadCustomerDataBookingTable();
     }
     else
     {
         MessageBox.Show(" Adding failed ");
     }
 }
Example #3
0
 private void LoadCustomerDataBookingTable()
 {
     try
     {
         BS_Layer.BLCustomer bl = new BS_Layer.BLCustomer();
         Booking_Datagridview_ListOfCustomer.DataSource = bl.LoadCustomer();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
         MessageBox.Show("Can not fetch data in table Customer !");
     }
 }