private void filenameProcessorsToolStripMenuItem_Click(object sender, System.EventArgs e) { //Season ^currentSeas = TreeNodeToSeason(MyShowTree->SelectedNode); ShowItem currentSI = this.TreeNodeToShowItem(this.MyShowTree.SelectedNode); string theFolder = ""; if (currentSI != null) { foreach (System.Collections.Generic.KeyValuePair<int, List<string>> kvp in currentSI.AllFolderLocations(this.mDoc.Settings)) { foreach (string folder in kvp.Value) { if ((!string.IsNullOrEmpty(folder)) && Directory.Exists(folder)) { theFolder = folder; break; } } if (!string.IsNullOrEmpty(theFolder)) break; } } AddEditSeasEpFinders d = new AddEditSeasEpFinders(this.mDoc.Settings.FNPRegexs, this.mDoc.GetShowItems(true), currentSI, theFolder, this.mDoc.Settings); this.mDoc.UnlockShowItems(); DialogResult dr = d.ShowDialog(); if (dr == DialogResult.OK) this.mDoc.SetDirty(); }
public ChangedCont(AddEditSeasEpFinders p) { this.p = p; }
public ChangedCont(AddEditSeasEpFinders p) { this.P = p; }