Example #1
0
        private void Filter(object sender, RoutedEventArgs e)
        {
            var f = new FilterDialog();

            f.Left       = this.Left + 10;
            f.Top        = this.Top + 10;
            f.FilterText = User.Default.FilterText;
            if (f.ShowDialog().Value)
            {
                User.Default.FilterText = f.FilterText.Trim();
                User.Default.Save();

                FilterAndSort(_currentSort);
            }
        }
Example #2
0
        public void ShowFilterDialog()
        {
            var f = new FilterDialog();

            f.Owner = _window;

            f.FilterText        = User.Default.FilterText;
            f.FilterTextPreset1 = User.Default.FilterTextPreset1;
            f.FilterTextPreset2 = User.Default.FilterTextPreset2;
            f.FilterTextPreset3 = User.Default.FilterTextPreset3;

            if (f.ShowDialog().Value)
            {
                User.Default.FilterText        = f.FilterText.Trim();
                User.Default.FilterTextPreset1 = f.FilterTextPreset1.Trim();
                User.Default.FilterTextPreset2 = f.FilterTextPreset2.Trim();
                User.Default.FilterTextPreset3 = f.FilterTextPreset3.Trim();
                User.Default.Save();

                UpdateDisplayedTasks();
            }
        }
Example #3
0
		private void Filter(object sender, RoutedEventArgs e)
		{
			var f = new FilterDialog();
			f.Left = this.Left + 10;
			f.Top = this.Top + 10;
			f.FilterText = User.Default.FilterText;
			if (f.ShowDialog().Value)
			{
				User.Default.FilterText = f.FilterText.Trim();
				FilterAndSort(_currentSort);
			}
		}
Example #4
0
		public void ShowFilterDialog()
		{
			var f = new FilterDialog();
			f.Owner = _window;

			f.FilterText = User.Default.FilterText;
			f.FilterTextPreset1 = User.Default.FilterTextPreset1;
			f.FilterTextPreset2 = User.Default.FilterTextPreset2;
			f.FilterTextPreset3 = User.Default.FilterTextPreset3;

			if (f.ShowDialog().Value)
			{
				User.Default.FilterText = f.FilterText.Trim();
				User.Default.FilterTextPreset1 = f.FilterTextPreset1.Trim();
				User.Default.FilterTextPreset2 = f.FilterTextPreset2.Trim();
				User.Default.FilterTextPreset3 = f.FilterTextPreset3.Trim();
				User.Default.Save();

				UpdateDisplayedTasks();
			}
		}
        public void ShowFilterDialog()
        {
            var f = new FilterDialog(this);
            f.Owner = _window;

            f.FilterText = User.Default.FilterText;
            f.FilterTextPreset1 = User.Default.FilterTextPreset1;
            f.FilterTextPreset2 = User.Default.FilterTextPreset2;
            f.FilterTextPreset3 = User.Default.FilterTextPreset3;
            f.FilterTextPreset4 = User.Default.FilterTextPreset4;
            f.FilterTextPreset5 = User.Default.FilterTextPreset5;
            f.FilterTextPreset6 = User.Default.FilterTextPreset6;
            f.FilterTextPreset7 = User.Default.FilterTextPreset7;
            f.FilterTextPreset8 = User.Default.FilterTextPreset8;
            f.FilterTextPreset9 = User.Default.FilterTextPreset9;

            if (f.ShowDialog().Value)
            {
                User.Default.FilterText = f.FilterText.Trim();
                User.Default.FilterTextPreset1 = f.FilterTextPreset1.Trim();
                User.Default.FilterTextPreset2 = f.FilterTextPreset2.Trim();
                User.Default.FilterTextPreset3 = f.FilterTextPreset3.Trim();
                User.Default.FilterTextPreset4 = f.FilterTextPreset4.Trim();
                User.Default.FilterTextPreset5 = f.FilterTextPreset5.Trim();
                User.Default.FilterTextPreset6 = f.FilterTextPreset6.Trim();
                User.Default.FilterTextPreset7 = f.FilterTextPreset7.Trim();
                User.Default.FilterTextPreset8 = f.FilterTextPreset8.Trim();
                User.Default.FilterTextPreset9 = f.FilterTextPreset9.Trim();

                User.Default.Save();

                GetSelectedTasks();
				UpdateDisplayedTasks();
                SetSelectedTasks();
            }
        }