示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FilterEdit   fe = new FilterEdit();
            DialogResult dr = fe.ShowDialog();

            if (fe.filter != null)
            {
                Filter f = fe.filter;
                filters.Add(f);

                string s = f.Action.ToString() + " [" + f.Extensions + "] " + " to \\" + f.TargetDir;
                listBox1.Items.Add(s);
            }
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FilterEdit fe = new FilterEdit();
            DialogResult dr = fe.ShowDialog();
            if (fe.filter != null)
            {
                Filter f = fe.filter;
                filters.Add(f);

                string s = f.Action.ToString() + " [" + f.Extensions + "] " + " to \\" + f.TargetDir;
                listBox1.Items.Add(s);
            }
        }