Пример #1
0
        public CategoryForm()
        {
            InitializeComponent();

            db = new databaseEntities();

            db.Categories.Load();
            categories = db.Categories.ToList();
            RefreshGrid();
        }
Пример #2
0
        public SupplierForm()
        {
            InitializeComponent();

            db = new databaseEntities();


            db.Suppliers.Load();

            RefreshGrid(dataGridView1);
        }
Пример #3
0
        public InvoicesForm()
        {
            InitializeComponent();

            db = new databaseEntities();

            db.Invoices.Load();
            RefreshGrid(dataGridView1);
            products = db.Products.ToList();
            invoices = db.Invoices.ToList();
        }
Пример #4
0
        public ManufacturerForm()
        {
            InitializeComponent();

            db = new databaseEntities();


            db.Manufacturers.Load();

            RefreshGrid(dataGridView1);
        }
Пример #5
0
        public MainForm()
        {
            InitializeComponent();

            db = new databaseEntities();

            products      = db.Products.ToList();
            categories    = db.Categories.ToList();
            temperatures  = db.Temperatures.ToList();
            expires       = db.Expires.ToList();
            manufacturers = db.Manufacturers.ToList();
            suppliers     = db.Suppliers.ToList();
        }
Пример #6
0
        public ProductForm()
        {
            InitializeComponent();

            db = new databaseEntities();


            db.Products.Load();



            products      = db.Products.ToList();
            categories    = db.Categories.ToList();
            temperatures  = db.Temperatures.ToList();
            expires       = db.Expires.ToList();
            manufacturers = db.Manufacturers.ToList();
            suppliers     = db.Suppliers.ToList();
            RefreshGrid(dataGridView1);
        }