private void InitializeComponent() { this._gradientBand = new GradientBand(); this._siteTextBox = new MxTextBox(); this._portTextBox = new MxTextBox(); this._userNameTextBox = new MxTextBox(); this._passwordTextBox = new MxTextBox(); this._httpRootTextBox = new MxTextBox(); this._httpUrlTextBox = new MxTextBox(); this._okButton = new MxButton(); this._cancelButton = new MxButton(); this._siteLabel = new MxLabel(); this._portLabel = new MxLabel(); this._userNameLabel = new MxLabel(); this._passwordLabel = new MxLabel(); this._httpRootLabel = new MxLabel(); this._httpUrlLabel = new MxLabel(); this._httpGroup = new GroupBox(); this._httpInfoLabel = new Label(); this._httpGroup.SuspendLayout(); base.SuspendLayout(); this._gradientBand.EndColor = Color.FromArgb(0xcc, 0xec, 0xff); this._gradientBand.GradientSpeed = 1; this._gradientBand.Location = new Point(0, 0x38); this._gradientBand.Name = "_gradientBand"; this._gradientBand.ScrollSpeed = 6; this._gradientBand.Size = new Size(0x1b0, 4); this._gradientBand.StartColor = Color.FromArgb(0, 0x33, 0x87); this._gradientBand.TabIndex = 0; this._gradientBand.Visible = false; this._siteTextBox.AlwaysShowFocusCues = true; this._siteTextBox.FlatAppearance = true; this._siteTextBox.Location = new Point(0x6c, 0x48); this._siteTextBox.Name = "_siteTextBox"; this._siteTextBox.Size = new Size(240, 20); this._siteTextBox.TabIndex = 2; this._siteTextBox.Text = ""; this._siteTextBox.TextChanged += new EventHandler(this.OnTextChangedEntry); this._portTextBox.AlwaysShowFocusCues = true; this._portTextBox.FlatAppearance = true; this._portTextBox.Location = new Point(0x6c, 0x60); this._portTextBox.Name = "_portTextBox"; this._portTextBox.Numeric = true; this._portTextBox.Size = new Size(60, 20); this._portTextBox.TabIndex = 4; this._portTextBox.Text = "21"; this._userNameTextBox.AlwaysShowFocusCues = true; this._userNameTextBox.FlatAppearance = true; this._userNameTextBox.Location = new Point(0x6c, 0x80); this._userNameTextBox.Name = "_userNameTextBox"; this._userNameTextBox.Size = new Size(240, 20); this._userNameTextBox.TabIndex = 6; this._userNameTextBox.Text = ""; this._userNameTextBox.TextChanged += new EventHandler(this.OnTextChangedEntry); this._passwordTextBox.AlwaysShowFocusCues = true; this._passwordTextBox.FlatAppearance = true; this._passwordTextBox.Location = new Point(0x6c, 0x98); this._passwordTextBox.Name = "_passwordTextBox"; this._passwordTextBox.PasswordStyle = true; this._passwordTextBox.Size = new Size(240, 20); this._passwordTextBox.TabIndex = 8; this._passwordTextBox.Text = ""; this._passwordTextBox.TextChanged += new EventHandler(this.OnTextChangedEntry); this._httpRootTextBox.AlwaysShowFocusCues = true; this._httpRootTextBox.FlatAppearance = true; this._httpRootTextBox.Location = new Point(0x60, 0x38); this._httpRootTextBox.Name = "_httpRootTextBox"; this._httpRootTextBox.Size = new Size(0x128, 20); this._httpRootTextBox.TabIndex = 2; this._httpRootTextBox.Text = ""; this._httpUrlTextBox.AlwaysShowFocusCues = true; this._httpUrlTextBox.FlatAppearance = true; this._httpUrlTextBox.Location = new Point(0x60, 80); this._httpUrlTextBox.Name = "_httpUrlTextBox"; this._httpUrlTextBox.Size = new Size(0x128, 20); this._httpUrlTextBox.TabIndex = 4; this._httpUrlTextBox.Text = ""; this._okButton.FlatStyle = FlatStyle.System; this._okButton.Location = new Point(260, 0x130); this._okButton.Name = "_okButton"; this._okButton.TabIndex = 10; this._okButton.Text = "OK"; this._okButton.Click += new EventHandler(this.OnClickOKButton); this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.Location = new Point(0x158, 0x130); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 11; this._cancelButton.Text = "Cancel"; this._cancelButton.Click += new EventHandler(this.OnClickCancelButton); this._siteLabel.FlatStyle = FlatStyle.System; this._siteLabel.Location = new Point(0x10, 0x4a); this._siteLabel.Name = "_siteLabel"; this._siteLabel.Size = new Size(80, 0x10); this._siteLabel.TabIndex = 1; this._siteLabel.Text = "&FTP Site:"; this._portLabel.FlatStyle = FlatStyle.System; this._portLabel.Location = new Point(0x10, 100); this._portLabel.Name = "_portLabel"; this._portLabel.Size = new Size(80, 0x10); this._portLabel.TabIndex = 3; this._portLabel.Text = "P&ort:"; this._userNameLabel.FlatStyle = FlatStyle.System; this._userNameLabel.Location = new Point(0x10, 0x84); this._userNameLabel.Name = "_userNameLabel"; this._userNameLabel.Size = new Size(80, 0x10); this._userNameLabel.TabIndex = 5; this._userNameLabel.Text = "&User Name:"; this._passwordLabel.FlatStyle = FlatStyle.System; this._passwordLabel.Location = new Point(0x10, 0x9c); this._passwordLabel.Name = "_passwordLabel"; this._passwordLabel.Size = new Size(80, 0x10); this._passwordLabel.TabIndex = 7; this._passwordLabel.Text = "&Password:"******"_httpRootLabel"; this._httpRootLabel.Size = new Size(80, 0x10); this._httpRootLabel.TabIndex = 1; this._httpRootLabel.Text = "&Directory:"; this._httpUrlLabel.FlatStyle = FlatStyle.System; this._httpUrlLabel.Location = new Point(8, 0x54); this._httpUrlLabel.Name = "_httpUrlLabel"; this._httpUrlLabel.Size = new Size(80, 0x10); this._httpUrlLabel.TabIndex = 3; this._httpUrlLabel.Text = "&Web URL:"; this._httpGroup.Controls.AddRange(new Control[] { this._httpInfoLabel, this._httpRootTextBox, this._httpUrlTextBox, this._httpUrlLabel, this._httpRootLabel }); this._httpGroup.FlatStyle = FlatStyle.System; this._httpGroup.Location = new Point(12, 0xb8); this._httpGroup.Name = "_httpGroup"; this._httpGroup.Size = new Size(0x198, 0x70); this._httpGroup.TabIndex = 9; this._httpGroup.TabStop = false; this._httpGroup.Text = "Web Application Information"; this._httpInfoLabel.Location = new Point(8, 20); this._httpInfoLabel.Name = "_httpInfoLabel"; this._httpInfoLabel.Size = new Size(0x188, 0x1c); this._httpInfoLabel.TabIndex = 0; this._httpInfoLabel.Text = "To run a Web application from this FTP connection, specify the path to the directory containing the application, and its associated HTTP URL."; this.AutoScaleBaseSize = new Size(5, 13); base.ClientSize = new Size(430, 0x151); base.Controls.AddRange(new Control[] { this._httpGroup, this._cancelButton, this._okButton, this._passwordTextBox, this._passwordLabel, this._userNameTextBox, this._userNameLabel, this._portTextBox, this._portLabel, this._siteTextBox, this._siteLabel, this._gradientBand }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "FtpConnectionDialog"; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; base.TaskBorderStyle = BorderStyle.FixedSingle; base.TaskCaption = "FTP Connection"; base.TaskDescription = "Enter information about the FTP site and your user identity."; this.Text = "New FTP Connection"; this._httpGroup.ResumeLayout(false); base.ResumeLayout(false); }
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); }