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); } }