Beispiel #1
0
        public CategoryForm()
        {
            InitializeComponent();

            db = new databaseEntities();

            db.Categories.Load();
            categories = db.Categories.ToList();
            RefreshGrid();
        }
Beispiel #2
0
        public SupplierForm()
        {
            InitializeComponent();

            db = new databaseEntities();


            db.Suppliers.Load();

            RefreshGrid(dataGridView1);
        }
Beispiel #3
0
        public InvoicesForm()
        {
            InitializeComponent();

            db = new databaseEntities();

            db.Invoices.Load();
            RefreshGrid(dataGridView1);
            products = db.Products.ToList();
            invoices = db.Invoices.ToList();
        }
        public ManufacturerForm()
        {
            InitializeComponent();

            db = new databaseEntities();


            db.Manufacturers.Load();

            RefreshGrid(dataGridView1);
        }
Beispiel #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();
        }
Beispiel #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);
        }