public void TreeInsertItem(object sender, EventArgs e) { // special behavior if this is a fake export node inside a SWF file ExportNode node = pluginUI.Tree.SelectedNode as ExportNode; if (node != null) { projectActions.InsertFile(MainForm, Project, node.ContainingSwfPath, node.Export); } else { projectActions.InsertFile(MainForm, Project, pluginUI.Tree.SelectedPath, null); } }