public frmIns_CustomerGroups(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers, int IDCompany, string NameCompany)
 {
     InitializeComponent();
     afrmIns_CustomerGroups_Customers_Old = afrmIns_CustomerGroups_Customers;
     this.IDCompany = IDCompany;
     this.NameCompany = NameCompany;
 }
 public frmUpd_Customers(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers, int IDCustomer)
 {
     InitializeComponent();
     this.afrmIns_CustomerGroups_Customers = afrmIns_CustomerGroups_Customers;
     this.IDCustomer = IDCustomer;
 }
 public frmLst_Companies(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers)
 {
     InitializeComponent();
     afrmIns_CustomerGroups_Customers_Old = afrmIns_CustomerGroups_Customers;
 }
 //hiennv
 private void btnAddCustomers_Click(object sender, EventArgs e)
 {
     try
     {
         string NameCustomerGroup = lueIDCustomerGroups.Text;
         string NameCompnay = lueIDCompanies.Text;
         if (NameCompnay.Equals("--- Chọn lựa ---") || NameCompnay.Equals(""))
         {
             lueIDCompanies.Text = "--- Chọn lựa ---";
             MessageBox.Show("Vui lòng chọn tên công ty .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         else if (NameCustomerGroup.Equals("--- Chọn lựa ---") || NameCustomerGroup.Equals(""))
         {
             lueIDCompanies.Text = "--- Chọn lựa ---";
             MessageBox.Show("Vui lòng chọn tên nhóm .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
         }
         else
         {
             int IDCustomerGroup = Convert.ToInt32(lueIDCustomerGroups.EditValue.ToString());
             frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers = new frmIns_CustomerGroups_Customers(this, IDCustomerGroup, NameCustomerGroup, NameCompnay);
             afrmIns_CustomerGroups_Customers.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_CheckInGroup_ForRoomBooking_Step2.btnAddCustomers_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public frmIns_Customers(frmIns_CustomerGroups_Customers afrmIns_CustomerGroups_Customers)
 {
     InitializeComponent();
     this.afrmIns_CustomerGroups_Customers = afrmIns_CustomerGroups_Customers;
 }