private void toolStripButtonSearch_Click(object sender, EventArgs e)
 {
     var vehicleSearch = new frmVehicleSearch(_userInfo, this);
     vehicleSearch.Owner = this;
     vehicleSearch.Show();
 }
Beispiel #2
0
 private void vehicleSearch_Click(object sender, EventArgs e)
 {
     var vehicleSearch = new frmVehicleSearch(_userInfo);
     vehicleSearch.MdiParent = this;
     vehicleSearch.Show();
 }
        private void vehicleSearch_Click(object sender, EventArgs e)
        {
          var filePath = Application.StartupPath + @"\conf\print_ticket.xml";
          PrintTicketSetting printSetting = ObjectToXml.GetTicketSetting(filePath);
          if (printSetting == null)
          {
            MessageBox.Show("Bạn chưa thiết lập cấu hình in ticket. Xin thiết lập cấu hình này trước");
            var frmPrintTicketSetting = new frmPrintTicketSetting(_userInfo);
            frmPrintTicketSetting.Show(this);
            return;
          }

            var vehicleSearch = new frmVehicleSearch(_userInfo, this);
            vehicleSearch.Show(this);
        }