private void btnAddCompany_Click(object sender, EventArgs e) { try { BookingHsBO aBookingHsBO = new BookingHsBO(); int CusType = Convert.ToInt32( aBookingHsBO.Select_ByID(IDBookingH).CustomerType); frmIns_Companies afrmIns_Companies = new frmIns_Companies(this, CusType); afrmIns_Companies.ShowDialog(); } catch (Exception ex) { MessageBox.Show("frmTsk_UpdBooking.btnAddCompany_Click\n" + ex.ToString(), "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnAdd_Click(object sender, EventArgs e) { frmIns_Companies afrmIns_Companies = new frmIns_Companies(this); afrmIns_Companies.ShowDialog(); }
private void barButtonItem15_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmIns_Companies afrmIns_Companies = new frmIns_Companies(); afrmIns_Companies.ShowDialog(); }
// Reload private void btnAddCompanies_Click(object sender, EventArgs e) { try { frmIns_Companies afrmIns_Company = new frmIns_Companies(this); afrmIns_Company.ShowDialog(); } catch (Exception ex) { MessageBox.Show("frmIns_CustomerGroups_Customers.btnAddCompanies_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }