Exemplo n.º 1
0
        private void EditItem_Click(object sender, RoutedEventArgs e)
        {
            Filter filter = TableFilters.SelectedItem as Filter;

            if (filter == null)
            {
                return;
            }
            WindowInputFilter win = new WindowInputFilter(filter.Arguments);

            win.ShowDialog();
            if (DialogTuple.Item1 == false)
            {
                return;
            }
            filter.Arguments = DialogTuple.Item2;
            TableFilters.Items.Refresh();
        }
Exemplo n.º 2
0
        private void ButtonAddFilter_Click(object sender, RoutedEventArgs e)
        {
            Warning warn = Table.SelectedItem as Warning;

            if (warn == null)
            {
                return;
            }
            WindowInputFilter win = new WindowInputFilter(warn.Arguments);

            win.ShowDialog();
            if (DialogTuple.Item1 == false)
            {
                return;
            }
            Filter filter = new Filter(warn.Source, warn.Number, DialogTuple.Item2);

            AddFilter(filter);
            TableFilters.Items.Refresh();
        }