protected void Add(AddWindowType add) { AddSelectedNode = tree.SelectedNodes.Count > 0 ? tree.SelectedNodes.LastOrDefault().Tag as Node : null; List<string> CleanedFilename = GetFilenames(Model.Nodes, false); frmAdd frm = new frmAdd(CleanedFilename, add); Variables.OpenedForm.Add(frm); frm.Show(); frm.FilesAdded += new EventHandler<FilesAddedArgs>(frm_FilesAdded); }
protected void Add(AddWindowType add) { AddSelectedNode = tree.SelectedNodes.Count > 0 ? tree.SelectedNodes.LastOrDefault().Tag as Node : null; List <string> CleanedFilename = GetFilenames(Model.Nodes, false); frmAdd frm = new frmAdd(CleanedFilename, add); Variables.OpenedForm.Add(frm); frm.Show(); frm.FilesAdded += new EventHandler <FilesAddedArgs>(frm_FilesAdded); }