private void OnSettingsKeyChanged(object sender, SettingsKeyChanged e) { string key = e.Key; if (key == CoreSettings.UseGroupedDates) { this.smartCollection.GroupBuilder = GroupBuilderFactory.GetGroupBuilder(this.folder, this.workbook.Settings); this.isDatesGrouped = this.workbook.Settings.GetValue <bool>(CoreSettings.UseGroupedDates); } else if (key.StartsWith("TaskOrdering")) { this.smartCollection.GroupBuilder = GroupBuilderFactory.GetGroupBuilder(this.folder, this.workbook.Settings); this.RaisePropertyChanged("DisplayFolder"); this.RaisePropertyChanged("DisplayDue"); } else if (key == CoreSettings.CompletedTasksMode) { this.hideCompletedTasks = this.workbook.Settings.GetValue <CompletedTaskMode>(CoreSettings.CompletedTasksMode) == CompletedTaskMode.Hide; this.smartCollection.GroupBuilder = GroupBuilderFactory.GetGroupBuilder(this.folder, this.workbook.Settings); this.smartCollection.Rebuild(); } else if (key == CoreSettings.ShowFutureStartDates) { this.showFutureStartDates = this.workbook.Settings.GetValue <bool>(CoreSettings.ShowFutureStartDates); this.smartCollection.Rebuild(); } }
private void OnSettingsKeyChanged(object sender, SettingsKeyChanged e) { if (e.Key == CoreSettings.IncludeNoDateInViews) { this.UpdateFilterPredicate(); this.Rebuild(); } }
private void OnSettingsChanged(object sender, SettingsKeyChanged e) { if (e.Key == CoreSettings.BackgroundPattern || e.Key == CoreSettings.BackgroundImage || e.Key == CoreSettings.UseDarkTheme) { this.RaisePropertyChanged("AppBackgroundPattern"); } else if (e.Key == CoreSettings.BackgroundOpacity) { this.RaisePropertyChanged("AppBackgroundOpacity"); } }
private void OnSettingsKeyChanged(object sender, SettingsKeyChanged e) { this.OnSettingsKeyChanged(e.Key); }