private void btnSearchCustomerGroup_Click(object sender, EventArgs e)
        {
            try
            {
                string NameCompany = lueCompany.Text;
                if (NameCompany.Equals("--- Chọn lựa ---") || NameCompany.Equals(""))
                {
                    lueCompany.Text = "--- Chọn lựa ---";
                    MessageBox.Show("Vui lòng chọ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("frmTsk_UpdBooking.btnSearchCustomerGroup_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        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);
            }
        }
 private void barButtonItem16_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmLst_CustomerGroups afrmLst_CustomerGroups = new frmLst_CustomerGroups();
     afrmLst_CustomerGroups.Show();
 }
Ejemplo n.º 4
0
 private void btnListCustomerGroup_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         frmLst_CustomerGroups afrmLst_CustomerGroups = new frmLst_CustomerGroups();
         afrmLst_CustomerGroups.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmMain.btnListCustomerGroup_ItemClick\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 5
0
 private void bnViewCusGroup_ItemClick(object sender, ItemClickEventArgs e)
 {
     frmLst_CustomerGroups afrmCustormerGroups = new frmLst_CustomerGroups();
     afrmCustormerGroups.ShowDialog();
 }
 public frmIns_CustomerGroups(frmLst_CustomerGroups afrmLst_CustomerGroups)
 {
     InitializeComponent();
     afrmLst_CustomerGroups_Old = afrmLst_CustomerGroups;
 }