Example #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////

        private void buttonFilterAdd_Click(object sender, RoutedEventArgs e)
        {
            var w = new FilterConfiguration(null);

            w.ShowDialog();

            if (true == w.DialogResult)
            {
                mFilters.Add(w.Filter);
                Update();
                listBoxFilters.SelectedIndex = listBoxFilters.Items.Count - 1;
            }
        }
Example #2
0
        private void buttonFilterEdit_Click(object sender, RoutedEventArgs e)
        {
            System.Diagnostics.Debug.Assert(0 <= listBoxFilters.SelectedIndex);
            System.Diagnostics.Debug.Assert(listBoxFilters.SelectedIndex < mFilters.Count);

            var w = new FilterConfiguration(mFilters[listBoxFilters.SelectedIndex]);

            w.ShowDialog();

            if (true == w.DialogResult)
            {
                int idx = listBoxFilters.SelectedIndex;
                mFilters.RemoveAt(idx);
                mFilters.Insert(idx, w.Filter);
                Update();
            }
        }
Example #3
0
        private void buttonFilterEdit_Click(object sender, RoutedEventArgs e)
        {
            System.Diagnostics.Debug.Assert(0 <= listBoxFilters.SelectedIndex);
            System.Diagnostics.Debug.Assert(listBoxFilters.SelectedIndex < mFilters.Count);

            var w = new FilterConfiguration(mFilters[listBoxFilters.SelectedIndex]);
            w.ShowDialog();

            if (true == w.DialogResult) {
                int idx = listBoxFilters.SelectedIndex;
                mFilters.RemoveAt(idx);
                mFilters.Insert(idx, w.Filter);
                Update();
            }
        }
Example #4
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        private void buttonFilterAdd_Click(object sender, RoutedEventArgs e)
        {
            var w = new FilterConfiguration(null);
            w.ShowDialog();

            if (true == w.DialogResult) {
                mFilters.Add(w.Filter);
                Update();
                listBoxFilters.SelectedIndex = listBoxFilters.Items.Count - 1;
            }
        }