コード例 #1
0
 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, EventArgs e)
 {
     try
     {
         if (this.CustomerType == 1)
         {
             frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 1);//3:Khách nhà nước
             afrmLst_Companies.ShowDialog();
         }
         if (this.CustomerType == 2)
         {
             frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 2);//3:Khách đoàn
             afrmLst_Companies.ShowDialog();
         }
         if (this.CustomerType == 3)
         {
             frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 3);//3:Khách lẻ
             afrmLst_Companies.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 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);
     }
 }
コード例 #4
0
 private void btnSearchCompanies_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, CustomerType);
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_Booking_Step2.bt_BookingRs_Search_Company_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 //hiennv
 private void btnSearchCompanies_Click(object sender, EventArgs e)
 {
     try
     {
         frmLst_Companies afrmLst_Companies = new frmLst_Companies(this, 2);//2 :cong ty ngoai
         afrmLst_Companies.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmTsk_CheckInGroup_ForRoomBooking_Step2.btnSearchCompanies_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }