Example #1
0
 private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         FilterEdit o = new FilterEdit((ReplaceFilter)listBox1.SelectedItem);
         o.ShowDialog();
     }
     UpdList();
 }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ReplaceFilter tmp = new ReplaceFilter("");

            FilterEdit o = new FilterEdit(tmp);

            o.ShowDialog();

            ReplaseFilter.Collection.Add(tmp);

            Reupdate = true;

            UpdList();
        }
Example #3
0
        private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listBox1.SelectedIndex == -1)
            {
                return;
            }

            ReplaceFilter tmp =
                ReplaseFilter.Collection.Where(x => x.Z).FirstOrDefault(x => x.Key == (string)listBox1.SelectedItem);

            if (tmp == null)
            {
                tmp = new ReplaceFilter((string)listBox1.SelectedItem, true);
                ReplaseFilter.Collection.Add(tmp);
            }

            FilterEdit o = new FilterEdit(tmp);

            o.ShowDialog();
        }