示例#1
0
        public override void Run()
        {
            using (TreeViewOptions optionsDialog = new TreeViewOptions((Properties)PropertyService.Get("ICSharpCode.TextEditor.Document.Document.DefaultDocumentAggregatorProperties", new Properties()),
                                                                       AddInTree.GetTreeNode("/SharpDevelop/Dialogs/OptionsDialog"))) {
                optionsDialog.FormBorderStyle = FormBorderStyle.FixedDialog;

                optionsDialog.Owner = (Form)WorkbenchSingleton.Workbench;
                optionsDialog.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainForm);
            }
        }
示例#2
0
        public override void Run()
        {
            using (TreeViewOptions optionsDialog = new TreeViewOptions(AddInTree.GetTreeNode("/SharpDevelop/Dialogs/OptionsDialog"))) {
                optionsDialog.FormBorderStyle = FormBorderStyle.FixedDialog;

                optionsDialog.Owner = WorkbenchSingleton.MainForm;
                if (optionsDialog.ShowDialog(WorkbenchSingleton.MainForm) == DialogResult.OK)
                {
                    PropertyService.Save();
                }
            }
        }
示例#3
0
        public override void Run()
        {
            PropertyService propertyService = (PropertyService)ServiceManager.Services.GetService(typeof(PropertyService));
            IProperties     proterties      = (IProperties)propertyService.GetProperty("NetFocus.DataStructure.TextEditor.Document.DefaultDocumentProperties", new DefaultProperties());
            IAddInTreeNode  treeNode        = AddInTreeSingleton.AddInTree.GetTreeNode("/DataStructure/Dialogs/OptionsDialog");

            using (TreeViewOptions optionsDialog = new TreeViewOptions(proterties, treeNode)) {
                optionsDialog.FormBorderStyle = FormBorderStyle.FixedDialog;

                optionsDialog.Owner = (Form)WorkbenchSingleton.Workbench;
                optionsDialog.ShowDialog();
            }
        }