Exemple #1
0
        /// <summary>
        /// opens the window to show all products
        /// </summary>
        private void ListAllProducts()
        {
            OutputOfProducts o = new OutputOfProducts();

            o.Show();
            o.Closed += (a, b) => { SaveProducts(); };
        }
Exemple #2
0
        /// <summary>
        /// opens the window to show all products
        /// </summary>
        private void ShowAllProducts()
        {
            OutputOfProducts o = new OutputOfProducts();

            LoadProducts();
            o.Show();

            o.Closed += (x, y) =>
            {
                foreach (Day day in CurrWeek.DaysInWeek)
                {
                    if (day.Name.Equals(CurrDay))
                    {
                        day.Entrys.Clear();
                        break;
                    }
                }
                LoadProducts();
                GenerateWeek(CurrWeek.WeekNr);
                ReCalcAndUpdateInfoLine();
            };
        }