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