private void btnVehicleAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmVehicleEntry frmVEntry = new frmVehicleEntry(); frmVEntry.Execute(0, iVendorId); PopulateVehicleNo(); }
private void btnVehicleEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { VehicleBL.VehicleId = Convert.ToInt32(clsStatic.IsNullCheck(cboVehicleRegNo.EditValue, clsStatic.datatypes.vartypenumeric)); if (VehicleBL.VehicleId != -1) { frmVehicleEntry frmVEntry = new frmVehicleEntry(); frmVEntry.Execute(VehicleBL.VehicleId, iVendorId); iVehicleId = VehicleBL.VehicleId; PopulateVehicleNo(); cboVehicleRegNo.EditValue = iVehicleId; } else { MessageBox.Show("Choose Vehicle Registration No!", "MMS", MessageBoxButtons.OK, MessageBoxIcon.Information); } }