private void OnSaveConfig(object sender, RoutedEventArgs e)
        {
            MenuConfiguration config = new MenuConfiguration();
            var configMenus          = from m in menus
                                       select new MenuConfigDay {
                DayOfWeek = m.Day.DayOfWeek,
                Price     = m.Price
            };

            config.MenuConfig.AddRange(configMenus);
            Properties.Settings.Default.MenuConfigDays = config;
            Properties.Settings.Default.Save();
        }
        private void FillMenuList(DateTime startDay)
        {
            menus.Clear();
            MenuConfiguration config = Properties.Settings.Default.MenuConfigDays;

            if (config == null) // default fill
            {
                menus.Add(new MenuEntry {
                    Day = startDay, Price = 6.70m
                });
                menus.Add(new MenuEntry {
                    Day = startDay + TimeSpan.FromDays(1), Price = 6.70m
                });
                menus.Add(new MenuEntry {
                    Day = startDay + TimeSpan.FromDays(2), Price = 6.70m
                });
                menus.Add(new MenuEntry {
                    Day = startDay + TimeSpan.FromDays(3), Price = 6.70m
                });
                menus.Add(new MenuEntry {
                    Day = startDay + TimeSpan.FromDays(4), Price = 7.30m
                });
                menus.Add(new MenuEntry {
                    Day = startDay + TimeSpan.FromDays(5), Price = 6.70m
                });
            }
            else
            {
                foreach (var c in config.MenuConfig)
                {
                    menus.Add(new MenuEntry
                    {
                        Day   = startDay + TimeSpan.FromDays((int)c.DayOfWeek - 1),
                        Price = c.Price
                    });
                }
            }
        }