public CategoryForm() { InitializeComponent(); db = new databaseEntities(); db.Categories.Load(); categories = db.Categories.ToList(); RefreshGrid(); }
public SupplierForm() { InitializeComponent(); db = new databaseEntities(); db.Suppliers.Load(); RefreshGrid(dataGridView1); }
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); }
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(); }
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); }