private void btnSearchCustomer_Click(object sender, EventArgs e) { try { frmLst_Customers afrmLst_Customers = new frmLst_Customers(this); afrmLst_Customers.ShowDialog(); } catch (Exception ex) { MessageBox.Show("frmTsk_BookingHall_Customer_New.btn_BookingRs_Search_Company_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnSearchCustomer_Click(object sender, EventArgs e) { try { string NameCustomerGroup = lueIDCustomerGroup.Text; string NameCompnay = lueIDCompany.Text; if (NameCustomerGroup.Equals("--- Chọn lựa ---") || NameCustomerGroup.Equals("")) { lueIDCompany.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(lueIDCustomerGroup.EditValue.ToString()); frmLst_Customers afrmLst_Customers = new frmLst_Customers(this, IDCustomerGroup); afrmLst_Customers.ShowDialog(); } } catch (Exception ex) { MessageBox.Show("frm_Tsk_CheckIn_Customer_Step2.btnSearchCustomer_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public frmIns_Customers(frmLst_Customers afrmLst_Customers) { InitializeComponent(); this.afrmLst_Customers = afrmLst_Customers; }
public frmUpd_Customers(frmLst_Customers afrmLst_Customers, int aIDCustomer) { InitializeComponent(); this.afrmLst_Customers = afrmLst_Customers; this.IDCustomer = aIDCustomer; }
private void barButtonItem20_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmLst_Customers afrmLst_Customers = new frmLst_Customers(); afrmLst_Customers.Show(); }
private void btnLstCustomer_ItemClick(object sender, ItemClickEventArgs e) { try { frmLst_Customers afrmLst_Customers = new frmLst_Customers(this); afrmLst_Customers.Show(); } catch (Exception ex) { MessageBox.Show("frmMain.btnLstCustomer_ItemClick\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void bnViewCus_ItemClick(object sender, ItemClickEventArgs e) { frmLst_Customers afrmCus = new frmLst_Customers(); afrmCus.ShowDialog(); }