public static FileUI StartFile(RocketNode node) { if (openedUIs.ContainsKey(node)) { return(openedUIs[node]); } FileUI ui = new FileUI(node); ui.Closed += (s, e) => openedUIs.Remove(node); openedUIs.Add(node, ui); return(ui); }
private void Open_File(object sender, RoutedEventArgs e) { RocketNode selectedObject = (RocketNode)lNodes.SelectedItem; if (selectedObject != null) { //ShellUI shell = ShellUI.StartShell(selectedObject); //shell.Show(); FileUI file = FileUI.StartFile(selectedObject); file.Show(); } }