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 barButtonItem16_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmLst_CustomerGroups afrmLst_CustomerGroups = new frmLst_CustomerGroups(); afrmLst_CustomerGroups.Show(); }
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); } }
public frmIns_CustomerGroups(frmLst_CustomerGroups afrmLst_CustomerGroups) { InitializeComponent(); afrmLst_CustomerGroups_Old = afrmLst_CustomerGroups; }