public Addingform() { MyDatabase = new DatabaseController(); InitializeComponent(); exptxt1.Text = "01"; exptxt2.Text = "01"; exptxt3.Text = "2017"; cattxt.Text = "Drinken"; NotifyIcon = new NotifyIcon { Icon = SystemIcons.Exclamation, BalloonTipTitle = "Product added", BalloonTipText = "Product has been added to the fridge.", BalloonTipIcon = ToolTipIcon.Info }; }
/// <summary> /// Gets the data from every table in the Fifo DB schema /// </summary> public void GetData() { DatabaseController database = new DatabaseController(); if (Products != null) { Products.Clear(); } Products = database.GetProducts(); if (Categories != null) { Categories.Clear(); } Categories = database.GetCategories(); if (ProductsInHouse != null) { ProductsInHouse.Clear(); } ProductsInHouse = database.GetProductsInHouse(); }
public Fifoform() { Adding = new Addingform(); Database = new DatabaseController(); InitializeComponent(); }