private void btnSearchCompany_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 1);//1:Nha nuoc
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_UpdBooking.btnSearchCompany_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnSearchCompany_Click(object sender, System.EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 2);//2 : Công ty ngoài
         afrmLst_Companies.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_BookingHall_Group.btnSearchCompany_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 public frmIns_Companies(frmLst_Companies afrmLst_Companies)
 {
     InitializeComponent();
     afrmLst_Companies_Old = afrmLst_Companies;
 }
Пример #4
0
 private void barButtonItem14_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmLst_Companies afrmLst_Companies = new frmLst_Companies();
     afrmLst_Companies.Show();
 }
 public frmUpd_Companies(int ID,frmLst_Companies frmCom)
 {
     InitializeComponent();
     afrmLst_Companies_Old = frmCom;
     IDCompany_Old = ID;
 }
 private void btnSearchCompany_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this);
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmIns_CustomerGroups_Customers.btnSearchCompanies_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }