Exemplo n.º 1
0
        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
            };
        }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
 public Fifoform()
 {
     Adding   = new Addingform();
     Database = new DatabaseController();
     InitializeComponent();
 }