public frmUpd_CustomerGroups(int IDCustomerGoup, int IDCompany, frmLst_CustomerGroups afrmLst_CustomerGroups)
 {
     InitializeComponent();
     this.afrmLst_CustomerGroups = afrmLst_CustomerGroups;
     this.IDCompany_Old = IDCompany;
     this.IDCustomerGroups_Old = IDCustomerGoup;
 }
        private void btnSearchCustomerGroup_Click(object sender, EventArgs e)
        {
            try
            {
                if (String.IsNullOrEmpty(lueCompany.Text)== true)
                {
                    lueCompany.Focus();
                    MessageBox.Show("Vui lòng chọn tên công ty .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    int IDCompany = Convert.ToInt32(lueCompany.EditValue.ToString());
                    frmLst_CustomerGroups afrmLst_CustomerGroups = new frmLst_CustomerGroups(this, IDCompany);
                    afrmLst_CustomerGroups.ShowDialog();
                }
            }
            catch (Exception ex)
            {

                MessageBox.Show("frmIns_CustomerGroups_Customers.btnSearchCustomerGroups_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        //hiennv
        private void btnSearchCustomerGroups_Click(object sender, EventArgs e)
        {
            try
            {
                string NameCompany = lueIDCompanies.Text;
                if (NameCompany.Equals("--- Chọn lựa ---") || NameCompany.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
                {
                    int IDCompnay = Convert.ToInt32(lueIDCompanies.EditValue.ToString());
                    frmLst_CustomerGroups afrmLst_CustomerGroups = new frmLst_CustomerGroups(this, IDCompnay);
                    afrmLst_CustomerGroups.ShowDialog();
                }
            }
            catch (Exception ex)
            {

                MessageBox.Show("frmTsk_CheckInGroup_ForRoomBooking_Step2.btnSearchCustomerGroups_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
 public frmIns_CustomerGroups(frmLst_CustomerGroups afrmLst_CustomerGroups)
 {
     InitializeComponent();
     afrmLst_CustomerGroups_Old = afrmLst_CustomerGroups;
 }