public Window1() { Language = System.Windows.Markup.XmlLanguage.GetLanguage(System.Globalization.CultureInfo.CurrentCulture.Name); InitializeComponent(); Scheduler.VisualIntervalScale = TimeSpan.FromMinutes(30); minutesGroup.Visibility = Visibility.Visible; Scheduler.CalendarHelper.StartDayTime = TimeSpan.Parse("09:00:00"); Scheduler.Settings.FirstVisibleTime = TimeSpan.Parse("09:00:00"); Scheduler.CalendarHelper.EndDayTime = TimeSpan.Parse("18:00:00"); _printInfo = new PrintInfo(this.Scheduler); }
/// <summary> /// Initializes a new instance of the <see cref="PrintOptionsForm"/> form. /// </summary> /// <param name="info">The <see cref="PrintInfo"/> object.</param> /// <param name="defaultStyle">The <see cref="PrintStyle"/> object which should be selected initially.</param> /// <param name="printContext">The <see cref="PrintContextType"/> value, determining the filter of styles which should be shown in a form.</param> public PrintOptionsDialog(PrintInfo info, PrintStyle defaultStyle, PrintContextType printContext) { InitializeComponent(); _context = printContext; _info = info; foreach (PrintStyle ps in _info.PrintStyles) { if ((_context & ps.Context) != 0) { lstStyles.Items.Add(ps); } } if (defaultStyle != null && lstStyles.Items.Count > 0) { lstStyles.SelectedItem = defaultStyle; } _hidePrivateAppointmentsInitial = HidePrivateAppointments = _info.HidePrivateAppointments; }