private void FormOutputParameters_Load(object sender, System.EventArgs e)
        {
            #region Schedule Tab
            comboBoxEditStation.Properties.Items.AddRange(Controllers.StationManager.Instance.GetStationList());
            comboBoxEditStation.EditValue = Controllers.StationManager.Instance.SelectedStation.Name;

            DateTime currentDate = Controllers.StationManager.Instance.SelectedDay.Date;
            while (currentDate.DayOfWeek != DayOfWeek.Monday)
                currentDate = currentDate.AddDays(-1);
            dateEditWeekStart.DateTime = currentDate;

            CoreObjects.Week week = new CoreObjects.Week();
            week.DateStart = dateEditWeekStart.DateTime;
            week.DateEnd = week.DateStart.AddDays(6);
            _weeks.Add(week);

            gridControlWeeks.DataSource = _weeks;
            #endregion

            #region Text Settings Tab
            comboBoxEditHeaderFont.Properties.Items.Clear();
            comboBoxEditHeaderFont.Properties.Items.AddRange(Controllers.ListManager.Instance.HeaderFonts.Select(x => x.FontString).ToArray());
            int selectedIndex = comboBoxEditHeaderFont.Properties.Items.IndexOf(ConfigurationClasses.SettingsManager.Instance.OutputSettings.HeaderFont.FontString);
            if (selectedIndex >= 0 && comboBoxEditHeaderFont.Properties.Items.Count > 0)
                comboBoxEditHeaderFont.SelectedIndex = selectedIndex;

            comboBoxEditFooterFont.Properties.Items.Clear();
            comboBoxEditFooterFont.Properties.Items.AddRange(Controllers.ListManager.Instance.FooterFonts.Select(x => x.FontString).ToArray());
            selectedIndex = comboBoxEditFooterFont.Properties.Items.IndexOf(ConfigurationClasses.SettingsManager.Instance.OutputSettings.FooterFont.FontString);
            if (selectedIndex >= 0 && comboBoxEditFooterFont.Properties.Items.Count > 0)
                comboBoxEditFooterFont.SelectedIndex = selectedIndex;

            comboBoxEditBodyFont.Properties.Items.Clear();
            comboBoxEditBodyFont.Properties.Items.AddRange(Controllers.ListManager.Instance.BodyFonts.Select(x => x.FontString).ToArray());
            selectedIndex = comboBoxEditBodyFont.Properties.Items.IndexOf(ConfigurationClasses.SettingsManager.Instance.OutputSettings.BodyFont.FontString);
            if (selectedIndex >= 0 && comboBoxEditBodyFont.Properties.Items.Count > 0)
                comboBoxEditBodyFont.SelectedIndex = selectedIndex;

            checkEditPrimeTimeSpecialFontSize.Checked = ConfigurationClasses.SettingsManager.Instance.OutputSettings.UsePrimeTimeSpecialFontSize;
            timeEditWeekPrimeTimeStart.Time = ConfigurationClasses.SettingsManager.Instance.OutputSettings.WeekPrimeTimeStart;
            timeEditWeekPrimeTimeEnd.Time = ConfigurationClasses.SettingsManager.Instance.OutputSettings.WeekPrimeTimeEnd;
            timeEditSundayPrimeTimeStart.Time = ConfigurationClasses.SettingsManager.Instance.OutputSettings.SundayPrimeTimeStart;
            timeEditSundayPrimeTimeEnd.Time = ConfigurationClasses.SettingsManager.Instance.OutputSettings.SundayPrimeTimeEnd;
            checkEditHouseNumber.Checked = ConfigurationClasses.SettingsManager.Instance.OutputSettings.ShowHouseNumber;
            #endregion
        }
 private void simpleButtonAddWeek_Click(object sender, EventArgs e)
 {
     CoreObjects.Week week = new CoreObjects.Week();
     week.DateStart = dateEditWeekStart.DateTime;
     week.DateEnd = week.DateStart.AddDays(6);
     if (_weeks.Where(x => x.DateStart.Year == week.DateStart.Year && x.DateStart.Month == week.DateStart.Month && x.DateStart.Day == week.DateStart.Day).Count() == 0)
         _weeks.Add(week);
     gridControlWeeks.RefreshDataSource();
 }