private void cmdAddFileType_Click(object sender, EventArgs e) { using (var dlg = new AddFilterDialog()) { if (dlg.ShowDialog(this) == DialogResult.OK) { string[] filters = dlg.Filter.Split(' ', ';'); foreach (string filter in filters) Filters.Add(filter); RefreshFileTypeList(); NeedRestart = true; } } }
private void cmdAddFileType_Click(object sender, EventArgs e) { using (var dlg = new AddFilterDialog()) { if (dlg.ShowDialog(this) == DialogResult.OK) { string[] filters = dlg.Filter.Split(' ', ';'); foreach (string filter in filters) { Filters.Add(filter); } RefreshFileTypeList(); NeedRestart = true; } } }