public CagesForm(int shopId) { shop_Id = shopId; InitializeComponent(); ctx = new AnimalsClassLibrary.AnimalsEntities(); LoadData(); }
public ChooseCagesForm(int shopId, DataGridView table) { shop_Id = shopId; myTable = table; InitializeComponent(); ctx = new AnimalsClassLibrary.AnimalsEntities(); LoadData(); }
public FoodForm(int speciesId) { species_Id = speciesId; InitializeComponent(); ctx = new AnimalsClassLibrary.AnimalsEntities(); ctx.Food1.Load(); food1BindingSource.DataSource = ctx.Food1.Local.ToBindingList(); LoadData(); }
public SearchForm() { InitializeComponent(); ctx = new AnimalsClassLibrary.AnimalsEntities(); ctx.Shop.Load(); this.shopBindingSource.DataSource = ctx.Shop.Local.ToBindingList(); ctx.Species.Load(); this.speciesBindingSource.DataSource = ctx.Species.Local.ToBindingList(); ctx.Color.Load(); this.colorBindingSource.DataSource = ctx.Color.Local.ToBindingList(); }