Exemple #1
0
 public CagesForm(int shopId)
 {
     shop_Id = shopId;
     InitializeComponent();
     ctx = new AnimalsClassLibrary.AnimalsEntities();
     LoadData();
 }
Exemple #2
0
 public ChooseCagesForm(int shopId, DataGridView table)
 {
     shop_Id = shopId;
     myTable = table;
     InitializeComponent();
     ctx = new AnimalsClassLibrary.AnimalsEntities();
     LoadData();
 }
Exemple #3
0
 public FoodForm(int speciesId)
 {
     species_Id = speciesId;
     InitializeComponent();
     ctx = new AnimalsClassLibrary.AnimalsEntities();
     ctx.Food1.Load();
     food1BindingSource.DataSource = ctx.Food1.Local.ToBindingList();
     LoadData();
 }
Exemple #4
0
        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();
        }