Exemplo n.º 1
0
 private void InitializeUserInterface()
 {
     this._detailsTabControl = new Microsoft.Matrix.UIComponents.TabControl();
     Panel panel = new Panel();
     ImageList list = new ImageList();
     Splitter splitter = new Splitter();
     Microsoft.Matrix.UIComponents.TabPage page = new Microsoft.Matrix.UIComponents.TabPage();
     Panel panel2 = new Panel();
     Microsoft.Matrix.UIComponents.TabPage page2 = new Microsoft.Matrix.UIComponents.TabPage();
     Panel panel3 = new Panel();
     Panel panel4 = new Panel();
     this._memberTree = new TreeView();
     this._descriptionView = new DescriptionView(this._serviceProvider, true);
     this._outlineView = new OutlineView(this._serviceProvider);
     this._showNonPublicCheckBox = new MxCheckBox();
     this._showInheritedCheckBox = new MxCheckBox();
     this._showObsoleteCheckBox = new MxCheckBox();
     list.ImageSize = new Size(0x10, 0x10);
     list.TransparentColor = Color.Green;
     list.ColorDepth = ColorDepth.Depth32Bit;
     list.Images.AddStrip(new Bitmap(typeof(TypeView), "MemberTreeImages.bmp"));
     this._memberTree.BorderStyle = BorderStyle.None;
     this._memberTree.Dock = DockStyle.Fill;
     this._memberTree.HideSelection = false;
     this._memberTree.ShowRootLines = false;
     this._memberTree.ShowLines = false;
     this._memberTree.TabIndex = 0;
     this._memberTree.ImageList = list;
     this._memberTree.AfterSelect += new TreeViewEventHandler(this.OnAfterSelectMemberTree);
     this._memberTree.BeforeCollapse += new TreeViewCancelEventHandler(this.OnBeforeCollapseMemberTree);
     panel.BackColor = SystemColors.ControlDark;
     panel.Size = new Size(200, 4);
     panel.Dock = DockStyle.Left;
     panel.DockPadding.All = 1;
     panel.TabIndex = 0;
     panel.Controls.Add(this._memberTree);
     splitter.Dock = DockStyle.Left;
     splitter.Size = new Size(3, 4);
     splitter.TabIndex = 1;
     this._descriptionView.Dock = DockStyle.Fill;
     this._descriptionView.TabIndex = 0;
     panel2.BackColor = SystemColors.ControlDark;
     panel2.Dock = DockStyle.Fill;
     panel2.DockPadding.All = 1;
     panel2.TabIndex = 0;
     panel2.TabStop = false;
     panel2.Controls.Add(this._descriptionView);
     page.Text = "Description";
     page.Controls.Add(panel2);
     this._detailsTabControl.TabPlacement = TabPlacement.Bottom;
     this._detailsTabControl.Mode = TabControlMode.TextOnly;
     this._detailsTabControl.Dock = DockStyle.Fill;
     this._detailsTabControl.TabIndex = 2;
     this._detailsTabControl.Tabs.Add(page);
     this._outlineView.Dock = DockStyle.Fill;
     this._outlineView.TabIndex = 0;
     panel3.BackColor = SystemColors.ControlDark;
     panel3.Dock = DockStyle.Fill;
     panel3.DockPadding.All = 1;
     panel3.TabIndex = 0;
     panel3.TabStop = false;
     panel3.Controls.Add(this._outlineView);
     page2.Text = "Class Outline";
     page2.Controls.Add(panel3);
     this._detailsTabControl.Tabs.Add(page2);
     this._showNonPublicCheckBox.Text = "Show Non-Public Members";
     this._showNonPublicCheckBox.TabIndex = 0;
     this._showNonPublicCheckBox.Size = new Size(200, 0x10);
     this._showNonPublicCheckBox.Location = new Point(2, 2);
     this._showNonPublicCheckBox.CheckedChanged += new EventHandler(this.OnCheckedChangedShowNonPublicCheckBox);
     this._showInheritedCheckBox.Text = "Show Inherited Members";
     this._showInheritedCheckBox.TabIndex = 1;
     this._showInheritedCheckBox.Size = new Size(200, 0x10);
     this._showInheritedCheckBox.Location = new Point(0xd0, 2);
     this._showInheritedCheckBox.CheckedChanged += new EventHandler(this.OnCheckedChangedShowInheritedCheckBox);
     this._showObsoleteCheckBox.Text = "Show Obsolete Members";
     this._showObsoleteCheckBox.TabIndex = 2;
     this._showObsoleteCheckBox.Size = new Size(200, 0x10);
     this._showObsoleteCheckBox.Location = new Point(0x19e, 2);
     this._showObsoleteCheckBox.CheckedChanged += new EventHandler(this.OnCheckedChangedShowObsoleteCheckBox);
     panel4.TabIndex = 3;
     panel4.Dock = DockStyle.Bottom;
     panel4.Size = new Size(10, 20);
     panel4.Controls.Add(this._showNonPublicCheckBox);
     panel4.Controls.Add(this._showInheritedCheckBox);
     panel4.Controls.Add(this._showObsoleteCheckBox);
     base.Controls.Add(this._detailsTabControl);
     base.Controls.Add(splitter);
     base.Controls.Add(panel);
     base.Controls.Add(panel4);
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     this._descriptionView.Dispose();
     this._descriptionView = null;
     base.Dispose(disposing);
 }