private void BoomUI_Load(object sender, EventArgs e) { _context = new BoomTrackingContext(); _context.Booms.Load(); boomsBindingSource.DataSource = _context.Booms.Local.ToBindingList(); }
private void frmMain_Load(object sender, EventArgs e) { _context = new BoomTrackingContext(); _context.Locations.Load(); this.LocationbindingSource.DataSource = _context.Locations.Local.ToBindingList(); }