Ejemplo n.º 1
0
        private void btnVehicleAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmVehicleEntry frmVEntry = new frmVehicleEntry();

            frmVEntry.Execute(0, iVendorId);
            PopulateVehicleNo();
        }
Ejemplo n.º 2
0
 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);
     }
 }