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;
                }
            }
        }
Exemple #2
0
        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;
                }
            }
        }