private void btnAddExisting_Click(object sender, EventArgs e) { var frmSelect = new frmVehicleSelect(_declerationID); frmSelect.OnSelectedVehichle += new frmVehicleSelect.OnSelectedVehicleHandler(frmSelect_OnSelectedVehichle); frmSelect.Show(); }
private void btnAddExisting_Click(object sender, EventArgs e) { //neu la khai bao nhap canh, thi them tu phuong tien da xuat canh hoặc xe TQ if (_declerationType.Equals(Common.DeclerationType.Import)) { var frmSelect = new frmVehicleSelect(_declerationID); frmSelect.OnSelectedVehichle += new frmVehicleSelect.OnSelectedVehicleHandler(frmSelect_OnSelectedVehichle); frmSelect.Show(this); } else //neu la khai bao xuat canh thi them tu phuont tien trong bai xuat { //var frmSelectExport = new FrmAddSelectVehichleFromExportPark(_declerationID); //frmSelectExport.OnSelectedVehichle += new FrmAddSelectVehichleFromExportPark.OnSelectedVehicleHandler(frmSelect_OnSelectedVehichle); //frmSelectExport.Show(this); } }