public static bool?ShowTreeOptions(string dialogName, string dialogTitle, AddInTreeNode node)
        {
            TreeViewOptionsDialog o = new TreeViewOptionsDialog(node.BuildChildItems <IOptionPanelDescriptor>(null), dialogName);

            o.Title = dialogTitle;
            o.Owner = SD.Workbench.MainWindow;
            return(o.ShowDialog());
        }
Esempio n. 2
0
        public static bool?ShowTreeOptions(string dialogTitle, AddInTreeNode node)
        {
            TreeViewOptionsDialog o      = new TreeViewOptionsDialog(node.BuildChildItems <IOptionPanelDescriptor>(null));
            WindowInteropHelper   helper = new WindowInteropHelper(o);

            o.Title = dialogTitle;
            o.Owner = WorkbenchSingleton.MainWindow;
            return(o.ShowDialog());
        }