コード例 #1
0
ファイル: TableView.cs プロジェクト: ikvm/webmatrix
 private void InitializeUserInterface()
 {
     this._bottomPanel = new Panel();
     this._columnPropertyGrid = new PropertyGrid();
     this._verticalSplitter = new Splitter();
     this._columnPropertyHelpLabel = new Label();
     this._horizontalSplitter = new Splitter();
     this._topPanel = new Panel();
     this._columnCommandsToolBar = new MxToolBar();
     this._moveColumnUpToolBarButton = new MxToolBarButton();
     this._moveColumnDownToolBarButton = new MxToolBarButton();
     this._deleteColumnToolBarButton = new MxToolBarButton();
     this._newColumnToolBarButton = new MxToolBarButton();
     this._separator1ToolBarButton = new MxToolBarButton();
     this._separator2ToolBarButton = new MxToolBarButton();
     this._columnsListView = new MxListView();
     this._columnNameColumnHeader = new ColumnHeader();
     this._dataTypeColumnHeader = new ColumnHeader();
     this._sizeColumnHeader = new ColumnHeader();
     this._allowNullsColumnHeader = new ColumnHeader();
     this._columnImageList = new ImageList();
     this._errorLabel = new MxInfoLabel();
     this._bottomPanel.SuspendLayout();
     this._topPanel.SuspendLayout();
     base.SuspendLayout();
     this._errorLabel.Dock = DockStyle.Top;
     this._errorLabel.Image = MxInfoLabel.ErrorGlyph;
     this._errorLabel.Location = new Point(0, 0);
     this._errorLabel.Padding = 2;
     this._errorLabel.Size = new Size(660, 160);
     this._errorLabel.Visible = false;
     this._errorLabel.DoubleClick += new EventHandler(this.OnErrorLabelDoubleClick);
     this._bottomPanel.BackColor = SystemColors.Control;
     this._bottomPanel.Controls.AddRange(new Control[] { this._columnPropertyGrid, this._verticalSplitter, this._columnPropertyHelpLabel });
     this._bottomPanel.Dock = DockStyle.Bottom;
     this._bottomPanel.Location = new Point(2, 0xd4);
     this._bottomPanel.Name = "_bottomPanel";
     this._bottomPanel.Size = new Size(660, 200);
     this._bottomPanel.TabIndex = 0;
     this._columnPropertyGrid.CommandsVisibleIfAvailable = false;
     this._columnPropertyGrid.Dock = DockStyle.Fill;
     this._columnPropertyGrid.HelpVisible = false;
     this._columnPropertyGrid.LargeButtons = false;
     this._columnPropertyGrid.LineColor = SystemColors.Control;
     this._columnPropertyGrid.Name = "_columnPropertyGrid";
     this._columnPropertyGrid.PropertySort = PropertySort.Categorized;
     this._columnPropertyGrid.Size = new Size(0x18d, 200);
     this._columnPropertyGrid.TabIndex = 5;
     this._columnPropertyGrid.ToolbarVisible = false;
     this._columnPropertyGrid.ViewBackColor = SystemColors.Window;
     this._columnPropertyGrid.ViewForeColor = SystemColors.WindowText;
     this._columnPropertyGrid.SelectedGridItemChanged += new SelectedGridItemChangedEventHandler(this.OnColumnPropertyGridSelectedGridItemChanged);
     this._columnPropertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(this.OnColumnPropertyGridPropertyValueChanged);
     this._verticalSplitter.Dock = DockStyle.Right;
     this._verticalSplitter.Location = new Point(0x18d, 0);
     this._verticalSplitter.Name = "_verticalSplitter";
     this._verticalSplitter.Size = new Size(3, 200);
     this._verticalSplitter.TabIndex = 4;
     this._verticalSplitter.TabStop = false;
     this._columnPropertyHelpLabel.BorderStyle = BorderStyle.Fixed3D;
     this._columnPropertyHelpLabel.Dock = DockStyle.Right;
     this._columnPropertyHelpLabel.ForeColor = Color.Blue;
     this._columnPropertyHelpLabel.Location = new Point(400, 0);
     this._columnPropertyHelpLabel.Name = "_columnPropertyHelpLabel";
     this._columnPropertyHelpLabel.Size = new Size(260, 200);
     this._columnPropertyHelpLabel.TabIndex = 3;
     this._columnPropertyHelpLabel.TextAlign = ContentAlignment.MiddleCenter;
     this._horizontalSplitter.Dock = DockStyle.Bottom;
     this._horizontalSplitter.Location = new Point(2, 0xd1);
     this._horizontalSplitter.Name = "_horizontalSplitter";
     this._horizontalSplitter.Size = new Size(660, 3);
     this._horizontalSplitter.TabIndex = 1;
     this._horizontalSplitter.TabStop = false;
     this._topPanel.Controls.AddRange(new Control[] { this._columnsListView, this._columnCommandsToolBar });
     this._topPanel.Dock = DockStyle.Fill;
     this._topPanel.Location = new Point(2, 2);
     this._topPanel.Name = "_topPanel";
     this._topPanel.Size = new Size(660, 0xcf);
     this._topPanel.TabIndex = 2;
     this._columnCommandsToolBar.Appearance = ToolBarAppearance.Flat;
     this._columnCommandsToolBar.Buttons.AddRange(new ToolBarButton[] { this._newColumnToolBarButton, this._separator1ToolBarButton, this._moveColumnUpToolBarButton, this._moveColumnDownToolBarButton, this._separator2ToolBarButton, this._deleteColumnToolBarButton });
     this._columnCommandsToolBar.Divider = false;
     this._columnCommandsToolBar.DropDownArrows = true;
     this._columnCommandsToolBar.ImageList = this._columnImageList;
     this._columnCommandsToolBar.Name = "_columnCommandsToolBar";
     this._columnCommandsToolBar.ShowToolTips = true;
     this._columnCommandsToolBar.TabIndex = 5;
     this._columnCommandsToolBar.TextAlign = ToolBarTextAlign.Right;
     this._columnCommandsToolBar.Wrappable = false;
     this._columnCommandsToolBar.ButtonClick += new ToolBarButtonClickEventHandler(this.OnColumnCommandsToolBarButtonClick);
     this._moveColumnUpToolBarButton.ImageIndex = 2;
     this._moveColumnUpToolBarButton.ToolTipText = "Move Selected Column Up (Ctrl+Up)";
     this._moveColumnDownToolBarButton.ImageIndex = 3;
     this._moveColumnDownToolBarButton.ToolTipText = "Move Selected Column Down (Ctrl+Down)";
     this._deleteColumnToolBarButton.ImageIndex = 5;
     this._deleteColumnToolBarButton.ToolTipText = "Delete Selected Column (Del)";
     this._newColumnToolBarButton.ImageIndex = 4;
     this._newColumnToolBarButton.Text = "New";
     this._newColumnToolBarButton.ToolTipText = "Add New Column (Ins)";
     this._separator1ToolBarButton.Style = ToolBarButtonStyle.Separator;
     this._separator2ToolBarButton.Style = ToolBarButtonStyle.Separator;
     this._columnsListView.Dock = DockStyle.Fill;
     this._columnsListView.Columns.AddRange(new ColumnHeader[] { this._columnNameColumnHeader, this._dataTypeColumnHeader, this._sizeColumnHeader, this._allowNullsColumnHeader });
     this._columnsListView.FullRowSelect = true;
     this._columnsListView.HeaderStyle = ColumnHeaderStyle.Nonclickable;
     this._columnsListView.HideSelection = false;
     this._columnsListView.LabelEdit = true;
     this._columnsListView.LabelWrap = false;
     this._columnsListView.Location = new Point(0, 0x18);
     this._columnsListView.MultiSelect = false;
     this._columnsListView.Name = "_columnsListView";
     this._columnsListView.Size = new Size(0x292, 0x11a);
     this._columnsListView.SmallImageList = this._columnImageList;
     this._columnsListView.TabIndex = 0;
     this._columnsListView.View = View.Details;
     this._columnsListView.AfterLabelEdit += new LabelEditEventHandler(this.OnColumnsListViewAfterLabelEdit);
     this._columnsListView.KeyDown += new KeyEventHandler(this.OnColumnsListViewKeyDown);
     this._columnsListView.SelectedIndexChanged += new EventHandler(this.OnColumnsListViewSelectedIndexChanged);
     this._columnNameColumnHeader.Text = "Column Name";
     this._columnNameColumnHeader.Width = 200;
     this._dataTypeColumnHeader.Text = "Data Type";
     this._dataTypeColumnHeader.Width = 100;
     this._sizeColumnHeader.Text = "Size";
     this._sizeColumnHeader.Width = 100;
     this._allowNullsColumnHeader.Text = "Allow Nulls";
     this._allowNullsColumnHeader.Width = 0x4b;
     this._columnImageList.ColorDepth = ColorDepth.Depth8Bit;
     this._columnImageList.ImageSize = new Size(0x10, 0x10);
     this._columnImageList.TransparentColor = Color.FromArgb(0xff, 0, 0xff, 0);
     this._columnImageList.Images.AddStrip(new Bitmap(typeof(TableView), "TableDesignImages.bmp"));
     this.BackColor = SystemColors.Control;
     base.ClientSize = new Size(0x298, 0x19e);
     base.Controls.AddRange(new Control[] { this._topPanel, this._horizontalSplitter, this._bottomPanel, this._errorLabel });
     this.Font = new Font("Tahoma", 8f);
     this._bottomPanel.ResumeLayout(false);
     this._topPanel.ResumeLayout(false);
     base.ResumeLayout(false);
 }
コード例 #2
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);
 }
コード例 #3
0
 private void InitializeComponent()
 {
     Microsoft.Matrix.UIComponents.TabControl control = new Microsoft.Matrix.UIComponents.TabControl();
     Microsoft.Matrix.UIComponents.TabPage page = new Microsoft.Matrix.UIComponents.TabPage();
     Microsoft.Matrix.UIComponents.TabPage page2 = new Microsoft.Matrix.UIComponents.TabPage();
     Microsoft.Matrix.UIComponents.TabPage page3 = null;
     MxButton button = null;
     MxButton button2 = new MxButton();
     this._infoGrid = new PropertyGrid();
     this._assemblyListView = new MxListView();
     control.SetBounds(4, 4, 0x1ec, 0x116);
     control.Mode = TabControlMode.TextOnly;
     control.TabPlacement = TabPlacement.Top;
     control.TabIndex = 0;
     control.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     if (this._sendFeedbackMode)
     {
         MxLabel label = new MxLabel();
         MxLabel label2 = new MxLabel();
         MxLabel label3 = new MxLabel();
         MxLabel label4 = new MxLabel();
         label.Text = "&Subject:";
         label.TabStop = false;
         label.TabIndex = 0;
         label.SetBounds(4, 6, 100, 0x10);
         this._messageSubjectText = new MxTextBox();
         this._messageSubjectText.TabIndex = 1;
         this._messageSubjectText.FlatAppearance = true;
         this._messageSubjectText.AlwaysShowFocusCues = true;
         this._messageSubjectText.SetBounds(0x6c, 4, 260, 0x15);
         label3.TabIndex = 2;
         label3.Text = "(Optional)";
         label3.SetBounds(0x174, 6, 100, 0x10);
         if (this._exception == null)
         {
             label3.Visible = false;
         }
         label2.Text = "&Email Address:";
         label2.TabStop = false;
         label2.TabIndex = 3;
         label2.SetBounds(4, 0x1f, 100, 0x10);
         this._userEmailText = new MxTextBox();
         this._userEmailText.TabIndex = 4;
         this._userEmailText.FlatAppearance = true;
         this._userEmailText.AlwaysShowFocusCues = true;
         this._userEmailText.SetBounds(0x6c, 0x1d, 260, 0x15);
         label4.TabIndex = 2;
         label4.Text = "(Optional)";
         label4.SetBounds(0x174, 0x1f, 100, 0x10);
         Panel panel = new Panel();
         panel.TabIndex = 0;
         panel.Height = 0x36;
         panel.Dock = DockStyle.Top;
         panel.BackColor = SystemColors.Control;
         panel.Controls.AddRange(new Control[] { label, this._messageSubjectText, label3, label2, this._userEmailText, label4 });
         this._messageText = new MxTextBox();
         this._messageText.Dock = DockStyle.Fill;
         this._messageText.Multiline = true;
         this._messageText.AcceptsReturn = true;
         this._messageText.AcceptsTab = true;
         this._messageText.WordWrap = true;
         this._messageText.TabIndex = 0;
         this._messageText.Text = this._feedbackMessage;
         this._messageText.BorderStyle = BorderStyle.None;
         Panel panel2 = new Panel();
         panel2.TabIndex = 1;
         panel2.DockPadding.All = 1;
         panel2.BackColor = SystemColors.ControlDark;
         panel2.Dock = DockStyle.Fill;
         panel2.Controls.Add(this._messageText);
         page3 = new Microsoft.Matrix.UIComponents.TabPage();
         page3.TabIndex = 4;
         page3.Text = "Feedback";
         page3.Controls.Add(panel2);
         page3.Controls.Add(panel);
         button = new MxButton();
         button.SetBounds(340, 0x120, 0x4b, 0x17);
         button.TabIndex = 1;
         button.Text = "Send";
         button.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
         button.Click += new EventHandler(this.OnClickSendFeedbackButton);
     }
     page.TabIndex = 1;
     page.Text = "Information";
     page2.TabIndex = 2;
     page2.Text = "Loaded Assemblies";
     page2.BackColor = SystemColors.ControlDark;
     page2.DockPadding.All = 1;
     if (this._sendFeedbackMode)
     {
         control.Controls.Add(page3);
     }
     control.Controls.Add(page);
     control.Controls.Add(page2);
     button2.DialogResult = DialogResult.OK;
     button2.SetBounds(0x1a5, 0x120, 0x4b, 0x17);
     button2.TabIndex = 2;
     button2.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     if (this._sendFeedbackMode)
     {
         button2.Text = "Close";
     }
     else
     {
         button2.Text = "OK";
     }
     this._infoGrid.ToolbarVisible = false;
     this._infoGrid.Dock = DockStyle.Fill;
     this._infoGrid.TabIndex = 0;
     this._assemblyListView.BorderStyle = BorderStyle.None;
     this._assemblyListView.FullRowSelect = true;
     this._assemblyListView.View = View.Details;
     this._assemblyListView.HeaderStyle = ColumnHeaderStyle.Nonclickable;
     this._assemblyListView.FlatScrollBars = true;
     this._assemblyListView.ShowToolTips = true;
     this._assemblyListView.Dock = DockStyle.Fill;
     this._assemblyListView.TabIndex = 0;
     ColumnHeader header = new ColumnHeader();
     header.Text = "Name";
     header.TextAlign = HorizontalAlignment.Left;
     header.Width = 150;
     ColumnHeader header2 = new ColumnHeader();
     header2.Text = "Version";
     header2.TextAlign = HorizontalAlignment.Left;
     header2.Width = 0x4b;
     ColumnHeader header3 = new ColumnHeader();
     header3.Text = "Location";
     header3.TextAlign = HorizontalAlignment.Left;
     header3.Width = 250;
     this._assemblyListView.Columns.AddRange(new ColumnHeader[] { header, header2, header3 });
     if (this._sendFeedbackMode)
     {
         this.Text = "Send Feedback";
         base.Icon = new Icon(typeof(ApplicationInfoDialog), "Feedback.ico");
     }
     else
     {
         this.Text = "Application Information";
         base.Icon = new Icon(typeof(ApplicationInfoDialog), "ApplicationInfoDialog.ico");
     }
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.ShowInTaskbar = false;
     base.SizeGripStyle = SizeGripStyle.Hide;
     base.StartPosition = FormStartPosition.CenterParent;
     base.AcceptButton = button2;
     base.CancelButton = button2;
     base.ClientSize = new Size(500, 0x13d);
     base.MinimumSize = new Size(500, 340);
     page.Controls.Add(this._infoGrid);
     page2.Controls.Add(this._assemblyListView);
     base.Controls.Add(control);
     if (this._sendFeedbackMode)
     {
         base.Controls.Add(button);
     }
     base.Controls.Add(button2);
 }
コード例 #4
0
 private void InitializeComponent()
 {
     this._galleryLabel = new MxLabel();
     this._lookForLabel = new MxLabel();
     this._searchByLabel = new MxLabel();
     this._searchGroupLabel = new GroupLabel();
     this._resultsListView = new MxListView();
     this._searchButton = new MxButton();
     this._connectButton = new MxButton();
     this._galleryComboBox = new MxComboBox();
     this._keywordComboBox = new MxComboBox();
     this._gradientBand = new GradientBand();
     this._downloadButton = new MxButton();
     this._cancelButton = new MxButton();
     this._containerPanel = new Panel();
     this._resultsPanel = new Panel();
     this._resultsListViewPanel = new Panel();
     this._resultsSplitter = new Splitter();
     this._resultsSummaryPanel = new Panel();
     this._resultsSummaryLabel = new MxLabel();
     this._panelSplitter = new Splitter();
     this._categoryPanel = new Panel();
     this._categoryListView = new MxListView();
     this.Categories = new ColumnHeader();
     this._categoryRadioButton = new MxRadioButton();
     this._keywordRadioButton = new MxRadioButton();
     this._detailsButton = new MxButton();
     this._containerPanel.SuspendLayout();
     this._resultsPanel.SuspendLayout();
     this._resultsListViewPanel.SuspendLayout();
     this._resultsSummaryPanel.SuspendLayout();
     this._categoryPanel.SuspendLayout();
     base.SuspendLayout();
     this._galleryLabel.Location = new Point(0x10, 80);
     this._galleryLabel.Name = "_galleryLabel";
     this._galleryLabel.Size = new Size(0x30, 0x10);
     this._galleryLabel.TabIndex = 0;
     this._galleryLabel.Text = "&Gallery:";
     this._lookForLabel.Location = new Point(0x10, 160);
     this._lookForLabel.Name = "_lookForLabel";
     this._lookForLabel.Size = new Size(0x40, 0x10);
     this._lookForLabel.TabIndex = 7;
     this._lookForLabel.Text = "&Look For:";
     this._lookForLabel.Visible = false;
     this._searchByLabel.Location = new Point(0x10, 0x84);
     this._searchByLabel.Name = "_searchByLabel";
     this._searchByLabel.Size = new Size(0x48, 0x10);
     this._searchByLabel.TabIndex = 4;
     this._searchByLabel.Text = "Search By:";
     this._searchGroupLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._searchGroupLabel.Location = new Point(4, 0x6c);
     this._searchGroupLabel.Name = "_searchGroupLabel";
     this._searchGroupLabel.Size = new Size(0x204, 0x10);
     this._searchGroupLabel.TabIndex = 3;
     this._searchGroupLabel.Text = "Search";
     this._resultsListView.BorderStyle = BorderStyle.None;
     this._resultsListView.Dock = DockStyle.Fill;
     this._resultsListView.FlatScrollBars = false;
     this._resultsListView.FullRowSelect = true;
     this._resultsListView.HeaderStyle = ColumnHeaderStyle.Nonclickable;
     this._resultsListView.HideSelection = false;
     this._resultsListView.Location = new Point(1, 1);
     this._resultsListView.MultiSelect = false;
     this._resultsListView.Name = "_resultsListView";
     this._resultsListView.ShowToolTips = false;
     this._resultsListView.Size = new Size(0x185, 0x80);
     this._resultsListView.TabIndex = 1;
     this._resultsListView.WatermarkText = "No components found.\r\nSelect a category to begin browsing.";
     this._resultsListView.SelectedIndexChanged += new EventHandler(this.OnResultsListViewSelectedIndexChanged);
     this._searchButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this._searchButton.Location = new Point(440, 0x9d);
     this._searchButton.Name = "_searchButton";
     this._searchButton.TabIndex = 6;
     this._searchButton.Text = "&Search";
     this._searchButton.Visible = false;
     this._connectButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this._connectButton.Location = new Point(440, 0x4d);
     this._connectButton.Name = "_connectButton";
     this._connectButton.TabIndex = 2;
     this._connectButton.Text = "&Connect";
     this._galleryComboBox.AlwaysShowFocusCues = true;
     this._galleryComboBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._galleryComboBox.FlatAppearance = true;
     this._galleryComboBox.InitialText = null;
     this._galleryComboBox.Location = new Point(0x60, 0x4e);
     this._galleryComboBox.Name = "_galleryComboBox";
     this._galleryComboBox.Size = new Size(0x150, 0x15);
     this._galleryComboBox.TabIndex = 1;
     this._galleryComboBox.KeyDown += new KeyEventHandler(this.OnGalleryComboBoxKeyDown);
     this._keywordComboBox.AlwaysShowFocusCues = true;
     this._keywordComboBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._keywordComboBox.FlatAppearance = true;
     this._keywordComboBox.InitialText = null;
     this._keywordComboBox.Location = new Point(0x60, 0x9e);
     this._keywordComboBox.Name = "_keywordComboBox";
     this._keywordComboBox.Size = new Size(0x150, 0x15);
     this._keywordComboBox.TabIndex = 5;
     this._keywordComboBox.KeyDown += new KeyEventHandler(this.OnKeywordComboBoxKeyDown);
     this._gradientBand.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._gradientBand.EndColor = Color.FromArgb(0x80, 0x80, 0xff);
     this._gradientBand.GradientSpeed = 1;
     this._gradientBand.Location = new Point(0, 0x38);
     this._gradientBand.Name = "_gradientBand";
     this._gradientBand.ScrollSpeed = 5;
     this._gradientBand.Size = new Size(0x20c, 6);
     this._gradientBand.StartColor = Color.White;
     this._gradientBand.TabIndex = 0;
     this._gradientBand.Text = "gradientBand1";
     this._downloadButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this._downloadButton.Location = new Point(0x11c, 0x160);
     this._downloadButton.Name = "_downloadButton";
     this._downloadButton.TabIndex = 9;
     this._downloadButton.Text = "&Install";
     this._downloadButton.Click += new EventHandler(this.OnDownloadButtonClick);
     this._cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this._cancelButton.Location = new Point(0x1bc, 0x160);
     this._cancelButton.Name = "_cancelButton";
     this._cancelButton.TabIndex = 11;
     this._cancelButton.Text = "Cl&ose";
     this._cancelButton.Click += new EventHandler(this.OnCancelButtonClick);
     this._containerPanel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this._containerPanel.BackColor = SystemColors.ControlDark;
     this._containerPanel.Controls.AddRange(new Control[] { this._resultsPanel, this._panelSplitter, this._categoryPanel });
     this._containerPanel.Location = new Point(4, 0x9c);
     this._containerPanel.Name = "_containerPanel";
     this._containerPanel.Size = new Size(0x204, 0xb8);
     this._containerPanel.TabIndex = 7;
     this._resultsPanel.Controls.AddRange(new Control[] { this._resultsListViewPanel, this._resultsSplitter, this._resultsSummaryPanel });
     this._resultsPanel.Dock = DockStyle.Fill;
     this._resultsPanel.Location = new Point(0x7d, 0);
     this._resultsPanel.Name = "_resultsPanel";
     this._resultsPanel.Size = new Size(0x187, 0xb8);
     this._resultsPanel.TabIndex = 5;
     this._resultsListViewPanel.BackColor = SystemColors.ControlDark;
     this._resultsListViewPanel.Controls.AddRange(new Control[] { this._resultsListView });
     this._resultsListViewPanel.Dock = DockStyle.Fill;
     this._resultsListViewPanel.DockPadding.All = 1;
     this._resultsListViewPanel.Name = "_resultsListViewPanel";
     this._resultsListViewPanel.Size = new Size(0x187, 130);
     this._resultsListViewPanel.TabIndex = 0;
     this._resultsSplitter.BackColor = SystemColors.Control;
     this._resultsSplitter.Dock = DockStyle.Bottom;
     this._resultsSplitter.Location = new Point(0, 130);
     this._resultsSplitter.Name = "_resultsSplitter";
     this._resultsSplitter.Size = new Size(0x187, 4);
     this._resultsSplitter.TabIndex = 2;
     this._resultsSplitter.TabStop = false;
     this._resultsSummaryPanel.BackColor = SystemColors.ControlDark;
     this._resultsSummaryPanel.Controls.AddRange(new Control[] { this._resultsSummaryLabel });
     this._resultsSummaryPanel.Dock = DockStyle.Bottom;
     this._resultsSummaryPanel.DockPadding.All = 1;
     this._resultsSummaryPanel.Location = new Point(0, 0x86);
     this._resultsSummaryPanel.Name = "_resultsSummaryPanel";
     this._resultsSummaryPanel.Size = new Size(0x187, 50);
     this._resultsSummaryPanel.TabIndex = 3;
     this._resultsSummaryLabel.BackColor = SystemColors.Control;
     this._resultsSummaryLabel.Dock = DockStyle.Fill;
     this._resultsSummaryLabel.Location = new Point(1, 1);
     this._resultsSummaryLabel.Name = "_resultsSummaryLabel";
     this._resultsSummaryLabel.Size = new Size(0x185, 0x30);
     this._resultsSummaryLabel.TabIndex = 0;
     this._panelSplitter.BackColor = SystemColors.Control;
     this._panelSplitter.Location = new Point(0x79, 0);
     this._panelSplitter.Name = "_panelSplitter";
     this._panelSplitter.Size = new Size(4, 0xb8);
     this._panelSplitter.TabIndex = 3;
     this._panelSplitter.TabStop = false;
     this._panelSplitter.SplitterMoved += new SplitterEventHandler(this._panelSplitter_SplitterMoved);
     this._categoryPanel.BackColor = SystemColors.ControlDark;
     this._categoryPanel.Controls.AddRange(new Control[] { this._categoryListView });
     this._categoryPanel.Dock = DockStyle.Left;
     this._categoryPanel.DockPadding.All = 1;
     this._categoryPanel.Name = "_categoryPanel";
     this._categoryPanel.Size = new Size(0x79, 0xb8);
     this._categoryPanel.TabIndex = 4;
     this._categoryListView.BorderStyle = BorderStyle.None;
     this._categoryListView.Dock = DockStyle.Fill;
     this._categoryListView.FlatScrollBars = false;
     this._categoryListView.FullRowSelect = true;
     this._categoryListView.HeaderStyle = ColumnHeaderStyle.Nonclickable;
     this._categoryListView.HideSelection = false;
     this._categoryListView.Location = new Point(1, 1);
     this._categoryListView.MultiSelect = false;
     this._categoryListView.Name = "_categoryListView";
     this._categoryListView.ShowToolTips = false;
     this._categoryListView.Size = new Size(0x77, 0xb6);
     this._categoryListView.TabIndex = 1;
     this._categoryListView.WatermarkText = "";
     this._categoryListView.SelectedIndexChanged += new EventHandler(this.OnCategoryListViewSelectedIndexChanged);
     this._categoryRadioButton.Checked = true;
     this._categoryRadioButton.Location = new Point(100, 0x84);
     this._categoryRadioButton.Name = "_categoryRadioButton";
     this._categoryRadioButton.Size = new Size(0x44, 0x10);
     this._categoryRadioButton.TabIndex = 3;
     this._categoryRadioButton.TabStop = true;
     this._categoryRadioButton.Text = "C&ategory";
     this._categoryRadioButton.CheckedChanged += new EventHandler(this.OnCategoryRadioButtonCheckedChanged);
     this._keywordRadioButton.Location = new Point(0xb8, 0x84);
     this._keywordRadioButton.Name = "_keywordRadioButton";
     this._keywordRadioButton.Size = new Size(0x44, 0x10);
     this._keywordRadioButton.TabIndex = 4;
     this._keywordRadioButton.TabStop = true;
     this._keywordRadioButton.Text = "&Keyword";
     this._detailsButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this._detailsButton.Location = new Point(0x16c, 0x160);
     this._detailsButton.Name = "_detailsButton";
     this._detailsButton.TabIndex = 10;
     this._detailsButton.Text = "&Details";
     this._detailsButton.Click += new EventHandler(this.OnDetailsButtonClick);
     this.AutoScaleBaseSize = new Size(5, 13);
     base.CancelButton = this._cancelButton;
     base.ClientSize = new Size(0x20c, 0x181);
     base.Controls.AddRange(new Control[] { this._detailsButton, this._keywordRadioButton, this._categoryRadioButton, this._cancelButton, this._downloadButton, this._gradientBand, this._galleryComboBox, this._connectButton, this._searchGroupLabel, this._searchByLabel, this._galleryLabel, this._containerPanel, this._searchButton, this._keywordComboBox, this._lookForLabel });
     base.Icon = new Icon(typeof(ComponentGalleryDialog), "ComponentGallery.ico");
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.MinimumSize = new Size(0x214, 0x19c);
     base.Name = "ComponentGalleryDialog";
     base.ShowInTaskbar = false;
     base.StartPosition = FormStartPosition.CenterParent;
     base.TaskCaption = "Online Component Gallery";
     base.TaskDescription = "Search the online component gallery";
     base.TaskGlyph = new Bitmap(typeof(ComponentGalleryDialog), "ComponentGalleryGlyph.bmp");
     this.Text = "Component Gallery";
     this._containerPanel.ResumeLayout(false);
     this._resultsPanel.ResumeLayout(false);
     this._resultsListViewPanel.ResumeLayout(false);
     this._resultsSummaryPanel.ResumeLayout(false);
     this._categoryPanel.ResumeLayout(false);
     base.ResumeLayout(false);
 }