|
|
@@ -610,8 +610,8 @@ namespace PRSDesktop
|
|
|
private DynamicDataGrid<Meeting>? mg;
|
|
|
|
|
|
public bool IsReady { get; set; }
|
|
|
-
|
|
|
- public CalendarSettings Properties { get; set; }
|
|
|
+
|
|
|
+ public CalendarSettings Properties { get; set; } = new();
|
|
|
|
|
|
public Calendar()
|
|
|
{
|
|
|
@@ -643,7 +643,6 @@ namespace PRSDesktop
|
|
|
{
|
|
|
using (new EventSuppressor(Suppress.Settings, Suppress.Refresh, Suppress.Events))
|
|
|
{
|
|
|
-
|
|
|
Properties = LoadSettings?.Invoke(this) ?? new CalendarSettings();
|
|
|
SettingsVisible = Properties.SettingsVisible;
|
|
|
SelectedDate = Properties.AlwaysStartOnToday ? DateTime.Today : Properties.Date;
|
|
|
@@ -660,17 +659,6 @@ namespace PRSDesktop
|
|
|
AlwaysTodayBox.IsChecked = Properties.AlwaysStartOnToday;
|
|
|
|
|
|
ReloadColumns();
|
|
|
- // var widthtimer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(100) };
|
|
|
- // widthtimer.Tick += (o, e) =>
|
|
|
- // {
|
|
|
- // if (Bookings.ActualWidth > 0.0F)
|
|
|
- // {
|
|
|
- // widthtimer.IsEnabled = false;
|
|
|
- // ReloadColumns();
|
|
|
- // }
|
|
|
- // };
|
|
|
- // widthtimer.IsEnabled = true;
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
|