コード例 #1
0
        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();
            }
        }
コード例 #2
0
ファイル: ViewBase.cs プロジェクト: yaneshtyagi/2day
 private void OnSettingsKeyChanged(object sender, SettingsKeyChanged e)
 {
     if (e.Key == CoreSettings.IncludeNoDateInViews)
     {
         this.UpdateFilterPredicate();
         this.Rebuild();
     }
 }
コード例 #3
0
 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");
     }
 }
コード例 #4
0
 private void OnSettingsKeyChanged(object sender, SettingsKeyChanged e)
 {
     this.OnSettingsKeyChanged(e.Key);
 }