public LookUpItemView() { InitializeComponent(); _context = new FleetEntities(); _pm = PermissionManager.GetPermissionManager(); _fph = new FleetPermissionHelper(); AuthorizeForm(); }
public NewVehicle() { InitializeComponent(); context = new FleetEntities(); _pm = PermissionManager.GetPermissionManager(); _fph = new FleetPermissionHelper(); AuthorizeForm(); }
public CouponDetailView() { InitializeComponent(); context = new FleetEntities(); LoadLookups(); _pm = PermissionManager.GetPermissionManager(); _fph = new FleetPermissionHelper(); AuthorizeForm(); }
public VehicleList() { InitializeComponent(); this.gridControl1.Dock = DockStyle.Fill; _pm = PermissionManager.GetPermissionManager(); _fph = new FleetPermissionHelper(); context = new FleetEntities(); AuthorizeForm(); }
public VehicleDetail() { InitializeComponent(); context = new FleetEntities(); LoadLookupData(); _pm = PermissionManager.GetPermissionManager(); _fph = new FleetPermissionHelper(); AuthorizeForm(); //var margin = 10; //this.Top = ViewHelper.TopPositionForForm(margin); //this.Left = ViewHelper.TopPositionForForm(margin); //this.Height = ViewHelper.GetHeightForForm(margin); //this.Width = ViewHelper.GetWidthForForm(margin); }
private void AddFuelLog() { var selected = (VehicleInfo)vehicleListBindingSource.Current; var record = new FuelLog { VehicleId = selected.VehicleId }; var dialog = new FuelLogEdit(); dialog.ShowObject(record); var result = dialog.ShowDialog(); if (result == DialogResult.OK) { using (var ctx = new FleetEntities()) { ctx.FuelLogs.AddObject(record); ctx.SaveChanges(); } } }
public IEnumerable <LookupItem> GetAllLookupItems(Func <LookupItem, Boolean> where) { _context = new FleetEntities(); return(_context.LookupItems.Where(where).ToList()); }
private IEnumerable <LookupItem> LoadItemInfo() { _context = new FleetEntities(); return(_context.LookupItems.ToList()); }
public UnMountTireView() { InitializeComponent(); context = new FleetEntities(); LoadLookup(); }
public NewTire() { InitializeComponent(); context = new FleetEntities(); }
public void RefreshList() { context = new FleetEntities(); this.couponsBindingSource.DataSource = context.CouponInfoes.ToList(); }
public TireEdit() { InitializeComponent(); context = new FleetEntities(); }
public void RefreshList() { context = new FleetEntities(); maintenanceListBindingSource.DataSource = context.MaintenanceInfoes; }
public void RefreshList() { context = new FleetEntities(); this.tiresBindingSource.DataSource = context.TireInfoes.ToList(); }
private void LoadData() { context = new FleetEntities(); this.vehicleListBindingSource.DataSource = context.VehicleInfoes; }