Ejemplo n.º 1
0
 private void InitializeComponent()
 {
     this._openDocsTreeView = new MxTreeView();
     base.SuspendLayout();
     this._openDocsTreeView.BorderStyle = BorderStyle.None;
     this._openDocsTreeView.Dock = DockStyle.Fill;
     this._openDocsTreeView.HideSelection = false;
     this._openDocsTreeView.ShowRootLines = false;
     this._openDocsTreeView.ShowLines = false;
     this._openDocsTreeView.TabIndex = 0;
     this._openDocsTreeView.BeforeCollapse += new TreeViewCancelEventHandler(this.OnBeforeCollapseOpenDocsTreeView);
     this._openDocsTreeView.NodeDoubleClick += new TreeViewEventHandler(this.OnNodeDoubleClickOpenDocsTreeView);
     this.BackColor = SystemColors.ControlDark;
     base.DockPadding.All = 1;
     base.Controls.Add(this._openDocsTreeView);
     this.Text = "Open Windows";
     base.ShortText = "";
     base.Icon = new Icon(typeof(OpenDocumentsToolWindow), "OpenDocumentsToolWindow.ico");
     base.ResumeLayout(false);
 }
Ejemplo n.º 2
0
 private void InitializeComponent()
 {
     Panel panel = new Panel();
     ImageList list = new ImageList();
     ImageList list2 = new ImageList();
     ToolBarButton button = new MxToolBarButton();
     ToolBarButton button2 = new MxToolBarButton();
     ToolBarButton button3 = new MxToolBarButton();
     this._toolBar = new MxToolBar();
     this._openButton = new MxToolBarButton();
     this._refreshButton = new MxToolBarButton();
     this._deleteButton = new MxToolBarButton();
     this._newFolderButton = new MxToolBarButton();
     this._newDocumentButton = new MxToolBarButton();
     this._newProjectButton = new MxToolBarButton();
     this._treeView = new MxTreeView();
     panel.SuspendLayout();
     base.SuspendLayout();
     list2.ImageSize = new Size(0x10, 0x10);
     list2.TransparentColor = Color.Red;
     list2.ColorDepth = ColorDepth.Depth32Bit;
     list2.Images.AddStrip(new Bitmap(typeof(WorkspaceToolWindow), "WorkspaceToolBar.bmp"));
     this._toolBar.Appearance = ToolBarAppearance.Flat;
     this._toolBar.Divider = false;
     this._toolBar.DropDownArrows = true;
     this._toolBar.ShowToolTips = true;
     this._toolBar.TabIndex = 0;
     this._toolBar.TextAlign = ToolBarTextAlign.Right;
     this._toolBar.Wrappable = false;
     this._toolBar.ImageList = list2;
     this._toolBar.ButtonClick += new ToolBarButtonClickEventHandler(this.OnToolBarButtonClick);
     button.Style = ToolBarButtonStyle.Separator;
     button2.Style = ToolBarButtonStyle.Separator;
     button3.Style = ToolBarButtonStyle.Separator;
     this._openButton.ImageIndex = 0;
     this._openButton.ToolTipText = "Open File";
     this._openButton.Enabled = false;
     this._refreshButton.ImageIndex = 2;
     this._refreshButton.ToolTipText = "Refresh";
     this._refreshButton.Enabled = false;
     this._deleteButton.ImageIndex = 1;
     this._deleteButton.ToolTipText = "Delete";
     this._deleteButton.Enabled = false;
     this._newFolderButton.ImageIndex = 3;
     this._newFolderButton.ToolTipText = "New Folder";
     this._newFolderButton.Enabled = false;
     this._newDocumentButton.ImageIndex = 4;
     this._newDocumentButton.ToolTipText = "New File";
     this._newDocumentButton.Enabled = false;
     this._newProjectButton.ImageIndex = 5;
     this._newProjectButton.ToolTipText = "New Project";
     this._toolBar.Buttons.AddRange(new ToolBarButton[] { this._openButton, button, this._newDocumentButton, this._newFolderButton, this._deleteButton, button2, this._refreshButton, button3, this._newProjectButton });
     list.ImageSize = new Size(0x10, 0x10);
     list.TransparentColor = Color.Fuchsia;
     list.ColorDepth = ColorDepth.Depth32Bit;
     list.Images.AddStrip(new Bitmap(typeof(WorkspaceToolWindow), "WorkspaceTreeItems.bmp"));
     this._treeView.AllowDrop = true;
     this._treeView.BorderStyle = BorderStyle.None;
     this._treeView.Dock = DockStyle.Fill;
     this._treeView.HideSelection = false;
     this._treeView.ShowLines = false;
     this._treeView.TabIndex = 0;
     this._treeView.ImageList = list;
     this._treeView.AfterSelect += new TreeViewEventHandler(this.OnAfterSelectTreeView);
     this._treeView.AfterCollapse += new TreeViewEventHandler(this.OnAfterCollapseTreeView);
     this._treeView.BeforeExpand += new TreeViewCancelEventHandler(this.OnBeforeExpandTreeView);
     this._treeView.NodeDoubleClick += new TreeViewEventHandler(this.OnDoubleClickTreeView);
     this._treeView.ShowContextMenu += new ShowContextMenuEventHandler(this.OnShowContextMenuTreeView);
     this._treeView.ItemDrag += new ItemDragEventHandler(this.OnItemDragTreeView);
     this._treeView.DragDrop += new DragEventHandler(this.OnDragDropTreeView);
     this._treeView.DragEnter += new DragEventHandler(this.OnDragEnterTreeView);
     this._treeView.DragOver += new DragEventHandler(this.OnDragOverTreeView);
     panel.BackColor = SystemColors.ControlDark;
     panel.Controls.Add(this._treeView);
     panel.Dock = DockStyle.Fill;
     panel.DockPadding.All = 1;
     panel.TabIndex = 1;
     base.Controls.AddRange(new Control[] { panel, this._toolBar });
     this.Text = "Workspace";
     base.Icon = new Icon(typeof(WorkspaceToolWindow), "WorkspaceToolWindow.ico");
     panel.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Ejemplo n.º 3
0
 private void InitializeComponent()
 {
     Panel panel = new Panel();
     ImageList list = new ImageList();
     ToolBarButton button = new MxToolBarButton();
     ToolBarButton button2 = new MxToolBarButton();
     ToolBarButton button3 = new MxToolBarButton();
     this._toolBar = new MxToolBar();
     this._newDatabaseButton = new MxToolBarButton();
     this._closeDatabaseButton = new MxToolBarButton();
     this._refreshButton = new MxToolBarButton();
     this._deleteButton = new MxToolBarButton();
     this._newItemButton = new MxToolBarButton();
     this._openButton = new MxToolBarButton();
     this._treeView = new MxTreeView();
     panel.SuspendLayout();
     base.SuspendLayout();
     list.ImageSize = new Size(0x10, 0x10);
     list.TransparentColor = Color.Lime;
     list.ColorDepth = ColorDepth.Depth32Bit;
     list.Images.AddStrip(new Bitmap(typeof(DataToolWindow), "DataToolBar.bmp"));
     this._toolBar.Appearance = ToolBarAppearance.Flat;
     this._toolBar.Divider = false;
     this._toolBar.DropDownArrows = true;
     this._toolBar.ShowToolTips = true;
     this._toolBar.TabIndex = 0;
     this._toolBar.TextAlign = ToolBarTextAlign.Right;
     this._toolBar.Wrappable = false;
     this._toolBar.ImageList = list;
     this._toolBar.ButtonClick += new ToolBarButtonClickEventHandler(this.OnToolBarButtonClick);
     this._newDatabaseButton.ImageIndex = 0;
     this._newDatabaseButton.ToolTipText = "Add Database Connection";
     this._closeDatabaseButton.ImageIndex = 1;
     this._closeDatabaseButton.ToolTipText = "Close Database Connection";
     button.Style = ToolBarButtonStyle.Separator;
     button2.Style = ToolBarButtonStyle.Separator;
     button3.Style = ToolBarButtonStyle.Separator;
     this._refreshButton.ImageIndex = 3;
     this._refreshButton.ToolTipText = "Refresh";
     this._deleteButton.ImageIndex = 4;
     this._deleteButton.ToolTipText = "Delete";
     this._newItemButton.ImageIndex = 5;
     this._newItemButton.ToolTipText = "New Database Object";
     this._openButton.ImageIndex = 2;
     this._openButton.ToolTipText = "Open";
     this._toolBar.Buttons.AddRange(new ToolBarButton[] { this._openButton, button, this._newItemButton, this._deleteButton, button2, this._refreshButton, button3, this._newDatabaseButton, this._closeDatabaseButton });
     this._treeView.AllowDrop = true;
     this._treeView.BorderStyle = BorderStyle.None;
     this._treeView.Dock = DockStyle.Fill;
     this._treeView.HideSelection = false;
     this._treeView.TabIndex = 0;
     this._treeView.ImageList = list;
     this._treeView.AfterSelect += new TreeViewEventHandler(this.OnAfterSelectTreeView);
     this._treeView.BeforeExpand += new TreeViewCancelEventHandler(this.OnBeforeExpandTreeView);
     this._treeView.NodeDoubleClick += new TreeViewEventHandler(this.OnDoubleClickTreeView);
     this._treeView.ItemDrag += new ItemDragEventHandler(this.OnItemDragTreeView);
     panel.BackColor = SystemColors.ControlDark;
     panel.Controls.Add(this._treeView);
     panel.Dock = DockStyle.Fill;
     panel.DockPadding.All = 1;
     panel.TabIndex = 1;
     base.Controls.AddRange(new Control[] { panel, this._toolBar });
     panel.ResumeLayout(false);
     base.ResumeLayout(false);
     this.UpdateToolBarButtons(null);
 }
Ejemplo n.º 4
0
 private void InitializeComponent()
 {
     Panel panel = new Panel();
     ImageList list = new ImageList();
     ImageList list2 = new ImageList();
     list.ImageSize = new Size(0x10, 0x10);
     list.TransparentColor = Color.Green;
     list.ColorDepth = ColorDepth.Depth32Bit;
     list.Images.AddStrip(new Bitmap(typeof(ClassViewToolWindow), "ClassViewTreeImages.bmp"));
     list2.ImageSize = new Size(0x10, 0x10);
     list2.TransparentColor = Color.Red;
     list2.ColorDepth = ColorDepth.Depth32Bit;
     list2.Images.AddStrip(new Bitmap(typeof(ClassViewToolWindow), "ClassViewToolBar.bmp"));
     System.Type commandGroup = typeof(ClassViewCommands);
     this._commandManager = new CommandManager(base.ServiceProvider, this);
     this._toolBar1 = new MxToolBar();
     this._toolBar1.Appearance = ToolBarAppearance.Flat;
     this._toolBar1.Divider = false;
     this._toolBar1.DropDownArrows = true;
     this._toolBar1.ShowToolTips = true;
     this._toolBar1.TabIndex = 0;
     this._toolBar1.TextAlign = ToolBarTextAlign.Right;
     this._toolBar1.Wrappable = false;
     this._toolBar1.ImageList = list2;
     if (!this._searchOnly)
     {
         MxToolBarButton button = new MxToolBarButton();
         MxToolBarButton button2 = new MxToolBarButton();
         MxToolBarButton button3 = new MxToolBarButton();
         MxToolBarButton button4 = new MxToolBarButton();
         MxToolBarButton button5 = new MxToolBarButton();
         ToolBarButton button6 = new ToolBarButton();
         button2.ImageIndex = 1;
         button2.ToolTipText = "Browse By Assembly";
         button.ImageIndex = 2;
         button.ToolTipText = "Browse By Namespace";
         button3.ImageIndex = 3;
         button3.ToolTipText = "Sort Alphabetically";
         button4.ImageIndex = 4;
         button4.ToolTipText = "Sort By Class Type";
         button5.ImageIndex = 5;
         button5.ToolTipText = "Sort By Visibility";
         button6.Style = ToolBarButtonStyle.Separator;
         if (!ClassViewPackage.IsClassBrowserApplication)
         {
             MxToolBarButton button7 = new MxToolBarButton();
             MxToolBarButton button8 = new MxToolBarButton();
             MxToolBarButton button9 = new MxToolBarButton();
             MxToolBarButton button10 = new MxToolBarButton();
             MxToolBarButton button11 = new MxToolBarButton();
             ComboBoxToolBarButton button12 = new ComboBoxToolBarButton();
             ToolBarButton button13 = new ToolBarButton();
             button7.ImageIndex = 0;
             button7.ToolTipText = "Browse Search Results";
             button8.ImageIndex = 7;
             button8.ToolTipText = "View Non-Public Classes";
             button9.ImageIndex = 6;
             button9.ToolTipText = "Add/Remove Assemblies";
             button10.ImageIndex = 8;
             button10.ToolTipText = "Find By Type Name";
             button11.ImageIndex = 9;
             button11.ToolTipText = "Find By Member Name";
             button12.DropDownStyle = ComboBoxStyle.DropDown;
             button12.Text = new string('_', 0x16);
             button12.InitialText = "Enter Name to Search";
             button12.ToolTipText = "Search for a Class";
             button13.Style = ToolBarButtonStyle.Separator;
             this._toolBar1.Buttons.AddRange(new ToolBarButton[] { button, button2, button7, button6, button3, button4, button5, button13, button8, button9 });
             this._toolBar2 = new MxToolBar();
             this._toolBar2.Appearance = ToolBarAppearance.Flat;
             this._toolBar2.Divider = false;
             this._toolBar2.DropDownArrows = false;
             this._toolBar2.ShowToolTips = true;
             this._toolBar2.TabIndex = 0;
             this._toolBar2.TextAlign = ToolBarTextAlign.Right;
             this._toolBar2.Wrappable = false;
             this._toolBar2.ImageList = list2;
             this._toolBar2.Buttons.AddRange(new ToolBarButton[] { button12 });
             this._commandManager.AddCommand(button7, commandGroup, 15);
             this._commandManager.AddCommand(button8, commandGroup, 0x10);
             this._commandManager.AddCommand(button9, commandGroup, 1);
             this._commandManager.AddCommand(button12, commandGroup, 5);
             this._commandManager.AddToolBar(this._toolBar2);
         }
         else
         {
             this._toolBar1.Buttons.AddRange(new ToolBarButton[] { button, button2, button6, button3, button4, button5 });
         }
         this._commandManager.AddCommand(button, commandGroup, 14);
         this._commandManager.AddCommand(button2, commandGroup, 13);
         this._commandManager.AddCommand(button3, commandGroup, 10);
         this._commandManager.AddCommand(button4, commandGroup, 11);
         this._commandManager.AddCommand(button5, commandGroup, 12);
         this._commandManager.AddToolBar(this._toolBar1);
     }
     else
     {
         MxToolBarButton button14 = new MxToolBarButton();
         MxToolBarButton button15 = new MxToolBarButton();
         ComboBoxToolBarButton button16 = new ComboBoxToolBarButton();
         ToolBarButton button17 = new ToolBarButton();
         button14.ImageIndex = 8;
         button14.ToolTipText = "Find By Type Name";
         button14.Text = "Types";
         button15.ImageIndex = 9;
         button15.ToolTipText = "Find By Member Name";
         button15.Text = "Members";
         button16.DropDownStyle = ComboBoxStyle.DropDown;
         button16.Text = new string('_', 0x2d);
         button16.InitialText = "Enter Name to Search";
         button16.ToolTipText = "Search for a Class";
         button17.Style = ToolBarButtonStyle.Separator;
         this._toolBar1.Buttons.AddRange(new ToolBarButton[] { button14, button15, button17, button16 });
         this._commandManager.AddCommand(button14, commandGroup, 6);
         this._commandManager.AddCommand(button15, commandGroup, 7);
         this._commandManager.AddCommand(button16, commandGroup, 5);
         this._commandManager.AddToolBar(this._toolBar1);
     }
     panel.SuspendLayout();
     base.SuspendLayout();
     panel.BackColor = SystemColors.ControlDark;
     panel.Dock = DockStyle.Fill;
     panel.DockPadding.All = 1;
     panel.TabIndex = 1;
     if (!this._searchOnly)
     {
         this._treeView = new MxTreeView();
         this._treeView.BorderStyle = BorderStyle.None;
         this._treeView.Dock = DockStyle.Fill;
         this._treeView.HideSelection = false;
         this._treeView.ShowLines = false;
         this._treeView.TabIndex = 0;
         this._treeView.ImageList = list;
         this._treeView.AfterCollapse += new TreeViewEventHandler(this.OnAfterCollapseTreeView);
         this._treeView.AfterSelect += new TreeViewEventHandler(this.OnAfterSelectTreeView);
         this._treeView.BeforeCollapse += new TreeViewCancelEventHandler(this.OnBeforeCollapseTreeView);
         this._treeView.BeforeExpand += new TreeViewCancelEventHandler(this.OnBeforeExpandTreeView);
         this._treeView.NodeDoubleClick += new TreeViewEventHandler(this.OnNodeDoubleClickTreeView);
         panel.Controls.Add(this._treeView);
     }
     if (!ClassViewPackage.IsClassBrowserApplication || this._searchOnly)
     {
         ColumnHeader header = new ColumnHeader();
         ColumnHeader header2 = new ColumnHeader();
         header.Text = "Class";
         header2.Text = "Namespace";
         if (this._searchOnly)
         {
             header.Width = 200;
             header2.Width = 240;
         }
         else
         {
             header.Width = 0x87;
             header2.Width = 240;
         }
         this._listView = new MxListView();
         this._listView.BorderStyle = BorderStyle.None;
         this._listView.Dock = DockStyle.Fill;
         this._listView.HideSelection = false;
         this._listView.FullRowSelect = true;
         this._listView.TabIndex = 0;
         this._listView.SmallImageList = list;
         this._listView.View = View.Details;
         this._listView.HeaderStyle = ColumnHeaderStyle.Nonclickable;
         this._listView.LabelWrap = false;
         this._listView.MultiSelect = false;
         this._listView.FlatScrollBars = true;
         this._listView.ShowToolTips = true;
         this._listView.WatermarkText = "No Classes Found";
         this._listView.Sorting = SortOrder.Ascending;
         this._listView.Columns.Add(header);
         this._listView.Columns.Add(header2);
         if (this._searchOnly)
         {
             ColumnHeader header3 = new ColumnHeader();
             header3.Width = 200;
             header3.Text = "Member";
             this._listView.Columns.Add(header3);
         }
         if (this.Mode == ClassViewToolWindowMode.Browse)
         {
             this._listView.Visible = false;
         }
         this._listView.DoubleClick += new EventHandler(this.OnDoubleClickListView);
         this._listView.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedListView);
         panel.Controls.Add(this._listView);
     }
     if (ClassViewPackage.IsClassBrowserApplication || this._searchOnly)
     {
         base.Controls.AddRange(new Control[] { panel, this._toolBar1 });
     }
     else
     {
         base.Controls.AddRange(new Control[] { panel, this._toolBar2, this._toolBar1 });
     }
     if (!this._searchOnly)
     {
         this.Text = "Classes";
         if (ClassViewPackage.IsClassBrowserApplication)
         {
             base.Icon = new Icon(typeof(ClassViewToolWindowBase), "ClassBrowseToolWindow.ico");
         }
         else
         {
             base.Icon = new Icon(typeof(ClassViewToolWindowBase), "ClassViewToolWindow.ico");
         }
     }
     else
     {
         this.Text = "Search";
         base.Icon = new Icon(typeof(ClassViewToolWindowBase), "ClassSearchToolWindow.ico");
     }
     panel.ResumeLayout(false);
     base.ResumeLayout(false);
 }