private void InitForm() { this.lineText = new MxTextBox(); this.okButton = new Button(); this.cancelButton = new Button(); this.lineText.SetBounds(6, 6, 80, 0x15); this.lineText.TabIndex = 0; this.lineText.MaxLength = 5; this.lineText.Numeric = true; this.okButton.SetBounds(0x66, 5, 60, 0x16); this.okButton.TabIndex = 1; this.okButton.Text = "OK"; this.okButton.DialogResult = DialogResult.OK; this.cancelButton.SetBounds(0x66, 0x1f, 60, 0x16); this.cancelButton.TabIndex = 2; this.cancelButton.Text = "Cancel"; this.cancelButton.DialogResult = DialogResult.Cancel; base.ClientSize = new Size(0xa8, 0x3b); base.ShowInTaskbar = false; base.MaximizeBox = false; base.MinimizeBox = false; this.Text = "Go To Line"; base.AcceptButton = this.okButton; base.CancelButton = this.cancelButton; base.FormBorderStyle = FormBorderStyle.FixedDialog; this.Font = new Font("Tahoma", 8f); base.Icon = null; base.StartPosition = FormStartPosition.CenterParent; base.Controls.Add(this.lineText); base.Controls.Add(this.okButton); base.Controls.Add(this.cancelButton); }
private void InitializeComponent() { this._okButton = new MxButton(); this._urlLabel = new MxLabel(); this._urlTextBox = new MxTextBox(); this._cancelButton = new MxButton(); this._descriptionTextBox = new MxTextBox(); this._descriptionLabel = new MxLabel(); base.SuspendLayout(); this._okButton.Location = new Point(0xf4, 60); this._okButton.Name = "_okButton"; this._okButton.TabIndex = 4; this._okButton.Text = "OK"; this._okButton.Click += new EventHandler(this.OnOKButtonClick); this._urlLabel.Location = new Point(8, 0x24); this._urlLabel.Name = "_urlLabel"; this._urlLabel.Size = new Size(0x24, 15); this._urlLabel.TabIndex = 2; this._urlLabel.Text = "&URL:"; this._urlTextBox.AlwaysShowFocusCues = true; this._urlTextBox.FlatAppearance = true; this._urlTextBox.Location = new Point(0x54, 0x20); this._urlTextBox.Name = "_urlTextBox"; this._urlTextBox.Size = new Size(0x13c, 20); this._urlTextBox.TabIndex = 3; this._urlTextBox.Text = ""; this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0x144, 60); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 5; this._cancelButton.Text = "Cancel"; this._cancelButton.Click += new EventHandler(this.OnCancelButtonClick); this._descriptionTextBox.AlwaysShowFocusCues = true; this._descriptionTextBox.FlatAppearance = true; this._descriptionTextBox.Location = new Point(0x54, 8); this._descriptionTextBox.Name = "_descriptionTextBox"; this._descriptionTextBox.Size = new Size(0x13c, 20); this._descriptionTextBox.TabIndex = 1; this._descriptionTextBox.Text = ""; this._descriptionLabel.Location = new Point(8, 12); this._descriptionLabel.Name = "_descriptionLabel"; this._descriptionLabel.Size = new Size(0x41, 0x10); this._descriptionLabel.TabIndex = 0; this._descriptionLabel.Text = "&Description:"; base.AcceptButton = this._okButton; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(0x194, 0x58); base.Controls.AddRange(new Control[] { this._cancelButton, this._okButton, this._descriptionTextBox, this._urlTextBox, this._descriptionLabel, this._urlLabel }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "InsertHyperlinkDialog"; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Insert Hyperlink"; base.ResumeLayout(false); }
private void InitializeComponent() { this._tabSizeLabel = new MxLabel(); this._tabSizeTextBox = new MxTextBox(); this._convertTabsCheckBox = new MxCheckBox(); this._trimCheckBox = new MxCheckBox(); this._showWhitespaceCheckBox = new MxCheckBox(); this._showLineNumbersCheckBox = new MxCheckBox(); base.SuspendLayout(); this._tabSizeLabel.Location = new Point(8, 0x10); this._tabSizeLabel.Name = "_tabSizeLabel"; this._tabSizeLabel.Size = new Size(0x34, 0x10); this._tabSizeLabel.TabIndex = 0; this._tabSizeLabel.Text = "Tab Size:"; this._tabSizeTextBox.Location = new Point(0x44, 12); this._tabSizeTextBox.Name = "_tabSizeTextBox"; this._tabSizeTextBox.Numeric = true; this._tabSizeTextBox.Size = new Size(0x34, 20); this._tabSizeTextBox.TabIndex = 1; this._tabSizeTextBox.Text = ""; this._tabSizeTextBox.TextChanged += new EventHandler(this.OnValueChanged); this._convertTabsCheckBox.Location = new Point(8, 0x38); this._convertTabsCheckBox.Name = "_convertTabsCheckBox"; this._convertTabsCheckBox.Size = new Size(140, 20); this._convertTabsCheckBox.TabIndex = 2; this._convertTabsCheckBox.Text = "Convert tabs to spaces"; this._convertTabsCheckBox.CheckedChanged += new EventHandler(this.OnValueChanged); this._trimCheckBox.Location = new Point(8, 80); this._trimCheckBox.Name = "_trimCheckBox"; this._trimCheckBox.Size = new Size(160, 20); this._trimCheckBox.TabIndex = 3; this._trimCheckBox.Text = "Trim trailing whitespace"; this._trimCheckBox.CheckedChanged += new EventHandler(this.OnValueChanged); this._showWhitespaceCheckBox.Location = new Point(8, 0x68); this._showWhitespaceCheckBox.Name = "_showWhitespaceCheckBox"; this._showWhitespaceCheckBox.Size = new Size(140, 20); this._showWhitespaceCheckBox.TabIndex = 4; this._showWhitespaceCheckBox.Text = "Show whitespace"; this._showWhitespaceCheckBox.CheckedChanged += new EventHandler(this.OnValueChanged); this._showLineNumbersCheckBox.Location = new Point(8, 0x98); this._showLineNumbersCheckBox.Name = "_showLineNumbersCheckBox"; this._showLineNumbersCheckBox.Size = new Size(140, 20); this._showLineNumbersCheckBox.TabIndex = 4; this._showLineNumbersCheckBox.Text = "Show line numbers"; this._showLineNumbersCheckBox.CheckedChanged += new EventHandler(this.OnValueChanged); base.Controls.Add(this._showLineNumbersCheckBox); base.Controls.Add(this._showWhitespaceCheckBox); base.Controls.Add(this._trimCheckBox); base.Controls.Add(this._convertTabsCheckBox); base.Controls.Add(this._tabSizeTextBox); base.Controls.Add(this._tabSizeLabel); base.Name = "TextLanguageOptionsPage"; base.Size = new Size(0x174, 0xb0); base.ResumeLayout(false); }
private void InitializeComponent() { this._nameLabel = new Label(); this._cancelButton = new Button(); this._okButton = new Button(); this._defaultValueTextBox = new MxTextBox(); this._infoLabel = new Label(); base.SuspendLayout(); this._nameLabel.Location = new Point(8, 8); this._nameLabel.Name = "_nameLabel"; this._nameLabel.Size = new Size(0x128, 0x10); this._nameLabel.TabIndex = 0; this._cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.Location = new Point(0xe8, 80); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 3; this._cancelButton.Text = "Cancel"; this._cancelButton.Click += new EventHandler(this.OnCancelButtonClick); this._okButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._okButton.FlatStyle = FlatStyle.System; this._okButton.Location = new Point(0x98, 80); this._okButton.Name = "_okButton"; this._okButton.TabIndex = 2; this._okButton.Text = "OK"; this._okButton.Click += new EventHandler(this.OnOkButtonClick); this._defaultValueTextBox.AlwaysShowFocusCues = true; this._defaultValueTextBox.FlatAppearance = true; this._defaultValueTextBox.Location = new Point(8, 0x1c); this._defaultValueTextBox.Name = "_defaultValueTextBox"; this._defaultValueTextBox.Size = new Size(0x128, 20); this._defaultValueTextBox.TabIndex = 1; this._defaultValueTextBox.Text = ""; this._infoLabel.Location = new Point(8, 0x34); this._infoLabel.Name = "_infoLabel"; this._infoLabel.Size = new Size(0x128, 0x10); this._infoLabel.TabIndex = 4; this._infoLabel.Text = "Note: You must put single quotes around string values."; base.AcceptButton = this._okButton; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(0x13a, 0x6c); base.Controls.AddRange(new Control[] { this._infoLabel, this._defaultValueTextBox, this._cancelButton, this._okButton, this._nameLabel }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "SetDefaultDialog"; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Set Value"; base.ResumeLayout(false); }
private void InitializeUserInterface() { this._iconPictureBox = new PictureBox(); this._entryLabel = new MxLabel(); this._entryTextBox = new MxTextBox(); this._okButton = new MxButton(); this._cancelButton = new MxButton(); this._iconPictureBox.Location = new Point(12, 12); this._iconPictureBox.Name = "iconPictureBox"; this._iconPictureBox.Size = new Size(0x20, 0x20); this._iconPictureBox.SizeMode = PictureBoxSizeMode.CenterImage; this._iconPictureBox.Image = SystemIcons.Question.ToBitmap(); this._iconPictureBox.TabIndex = 0; this._iconPictureBox.TabStop = false; this._entryLabel.Location = new Point(0x38, 8); this._entryLabel.Name = "_entryLabel"; this._entryLabel.Size = new Size(0x160, 0x20); this._entryLabel.TabIndex = 1; this._entryLabel.Text = "[Entry Name]:"; this._entryTextBox.AlwaysShowFocusCues = true; this._entryTextBox.FlatAppearance = true; this._entryTextBox.Location = new Point(0x38, 0x2c); this._entryTextBox.Name = "_entryTextBox"; this._entryTextBox.Size = new Size(0x160, 20); this._entryTextBox.TabIndex = 1; this._entryTextBox.Text = ""; this._entryTextBox.TextChanged += new EventHandler(this.OnTextChangedEntryText); this._okButton.Enabled = false; this._okButton.Location = new Point(0xf8, 0x4c); this._okButton.Name = "_okButton"; this._okButton.TabIndex = 2; this._okButton.Text = "OK"; this._okButton.Click += new EventHandler(this.OnClickOKButton); this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0x14c, 0x4c); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 2; this._cancelButton.Text = "Cancel"; base.AcceptButton = this._okButton; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(420, 0x6d); base.Controls.AddRange(new Control[] { this._cancelButton, this._okButton, this._entryTextBox, this._entryLabel, this._iconPictureBox }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.Icon = null; base.MaximizeBox = false; base.MinimizeBox = false; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Enter Information"; }
private void InitializeComponent() { this._nameLabel = new MxLabel(); this._typeLabel = new MxLabel(); this._dataReaderRadioButton = new MxRadioButton(); this._dataSetRadioButton = new MxRadioButton(); this._methodNameTextBox = new MxTextBox(); base.SuspendLayout(); this._nameLabel.Location = new Point(8, 12); this._nameLabel.Name = "_nameLabel"; this._nameLabel.Size = new Size(460, 0x1c); this._nameLabel.TabIndex = 0; this._nameLabel.Text = "This CodeBuilder will generate a public method with strongly-typed parameters. What should the method be called?"; this._typeLabel.Location = new Point(8, 0x54); this._typeLabel.Name = "_typeLabel"; this._typeLabel.Size = new Size(460, 0x24); this._typeLabel.TabIndex = 1; this._typeLabel.Text = "The method can return either an System.Data.SqlClient.SqlDataReader or a System.Data.DataSet. Which do you want?"; this._dataReaderRadioButton.Location = new Point(40, 0x90); this._dataReaderRadioButton.Name = "_dataReaderRadioButton"; this._dataReaderRadioButton.Size = new Size(0x68, 0x10); this._dataReaderRadioButton.TabIndex = 2; this._dataReaderRadioButton.Text = "DataReader"; this._dataSetRadioButton.Checked = true; this._dataSetRadioButton.Location = new Point(40, 0x7c); this._dataSetRadioButton.Name = "_dataSetRadioButton"; this._dataSetRadioButton.Size = new Size(0x68, 0x10); this._dataSetRadioButton.TabIndex = 3; this._dataSetRadioButton.TabStop = true; this._dataSetRadioButton.Text = "DataSet"; this._methodNameTextBox.AlwaysShowFocusCues = true; this._methodNameTextBox.Location = new Point(8, 0x2c); this._methodNameTextBox.Name = "_methodNameTextBox"; this._methodNameTextBox.Size = new Size(0x10c, 20); this._methodNameTextBox.TabIndex = 4; this._methodNameTextBox.Text = "MyQueryMethod"; this._methodNameTextBox.TextChanged += new EventHandler(this._methodNameTextBox_TextChanged); base.Controls.AddRange(new Control[] { this._methodNameTextBox, this._dataSetRadioButton, this._dataReaderRadioButton, this._typeLabel, this._nameLabel }); base.Caption = "Name Method"; base.Description = "Enter a name for the method to be generated."; base.Name = "NameMethodPanel"; base.Size = new Size(0x1ec, 0x10c); base.ResumeLayout(false); }
private void InitializeComponent() { this._nameLabel = new MxLabel(); this._methodNameTextBox = new MxTextBox(); base.SuspendLayout(); this._nameLabel.Location = new Point(8, 12); this._nameLabel.Name = "_nameLabel"; this._nameLabel.Size = new Size(460, 0x1c); this._nameLabel.TabIndex = 0; this._nameLabel.Text = "This CodeBuilder will generate a public method with strongly-typed parameters. What should the method be called?"; this._methodNameTextBox.AlwaysShowFocusCues = true; this._methodNameTextBox.Location = new Point(8, 0x2c); this._methodNameTextBox.Name = "_methodNameTextBox"; this._methodNameTextBox.Size = new Size(0x10c, 20); this._methodNameTextBox.TabIndex = 4; this._methodNameTextBox.Text = this.DefaultMethodName; this._methodNameTextBox.TextChanged += new EventHandler(this._methodNameTextBox_TextChanged); base.Controls.AddRange(new Control[] { this._methodNameTextBox, this._nameLabel }); base.Caption = "Name Method"; base.Description = "Enter a name for the method to be generated."; base.Name = "NameDeleteMethodPanel"; base.Size = new Size(0x1ec, 0x10c); base.ResumeLayout(false); }
private void InitializeComponent() { Panel panel = new Panel(); Panel panel2 = new Panel(); Panel panel3 = new Panel(); MxLabel label = new MxLabel(); MxLabel label2 = new MxLabel(); MxLabel label3 = new MxLabel(); this._templateListView = new ListView(); this._descriptionLabel = new MxLabel(); this._categoryListBox = new ListBox(); this._fileNameText = new MxTextBox(); this._locationText = new MxTextBox(); this._codeGroup = new GroupLabel(); this._languageLabel = new MxLabel(); this._languageCombo = new MxComboBox(); this._locationPickerButton = new MxButton(); this._classInfoCheckBox = new MxCheckBox(); this._classLabel = new MxLabel(); this._classText = new MxTextBox(); this._namespaceLabel = new MxLabel(); this._namespaceText = new MxTextBox(); this._okButton = new MxButton(); this._cancelButton = new MxButton(); this._iconViewButton = new TrackButton(); this._listViewButton = new TrackButton(); panel.SuspendLayout(); panel2.SuspendLayout(); panel3.SuspendLayout(); base.SuspendLayout(); label.Location = new Point(12, 8); label.Size = new Size(0x40, 0x10); label.TabIndex = 0; label.Text = "&Templates:"; this._categoryListBox.IntegralHeight = false; this._categoryListBox.Dock = DockStyle.Fill; this._categoryListBox.BorderStyle = BorderStyle.None; this._categoryListBox.ScrollAlwaysVisible = true; this._categoryListBox.TabIndex = 0; this._categoryListBox.Sorted = true; this._categoryListBox.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedCategoryListBox); panel.BackColor = SystemColors.ControlDark; panel.DockPadding.All = 1; panel.Location = new Point(12, 0x1a); panel.Size = new Size(0xb9, 0xa8); panel.TabIndex = 1; panel.Controls.Add(this._categoryListBox); this._iconViewButton.Size = new Size(0x12, 0x12); this._iconViewButton.Location = new Point(0x19f, 6); this._iconViewButton.TabIndex = 2; this._iconViewButton.TabStop = false; this._iconViewButton.Checked = true; this._iconViewButton.Click += new EventHandler(this.OnClickIconViewButton); this._listViewButton.Size = new Size(0x12, 0x12); this._listViewButton.Location = new Point(0x1b2, 6); this._listViewButton.TabIndex = 3; this._listViewButton.TabStop = false; this._listViewButton.Click += new EventHandler(this.OnClickListViewButton); this._templateListView.BorderStyle = BorderStyle.None; this._templateListView.Dock = DockStyle.Fill; this._templateListView.HideSelection = false; this._templateListView.MultiSelect = false; this._templateListView.TabIndex = 0; this._templateListView.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedTemplateListView); panel2.BackColor = SystemColors.ControlDark; panel2.Controls.Add(this._templateListView); panel2.DockPadding.All = 1; panel2.Location = new Point(200, 0x1a); panel2.Size = new Size(0xfc, 0xa8); panel2.TabIndex = 4; this._descriptionLabel.BackColor = SystemColors.Control; this._descriptionLabel.Dock = DockStyle.Fill; this._descriptionLabel.TabIndex = 0; panel3.BackColor = SystemColors.ControlDark; panel3.Controls.Add(this._descriptionLabel); panel3.DockPadding.All = 1; panel3.Location = new Point(12, 0xc6); panel3.Size = new Size(440, 0x12); panel3.TabIndex = 5; label3.Location = new Point(12, 230); label3.Size = new Size(0x34, 0x10); label3.TabIndex = 6; label3.Text = "&Location:"; this._locationText.Location = new Point(0x52, 0xe4); this._locationText.Size = new Size(0x156, 20); this._locationText.TabIndex = 7; this._locationText.FlatAppearance = true; this._locationText.AlwaysShowFocusCues = true; this._locationText.TextChanged += new EventHandler(this.OnTextChangedFields); this._locationPickerButton.Location = new Point(0x1ac, 0xe3); this._locationPickerButton.Size = new Size(0x18, 0x16); this._locationPickerButton.TabIndex = 8; this._locationPickerButton.Text = "..."; this._locationPickerButton.Click += new EventHandler(this.OnClickPickerButton); label2.Location = new Point(12, 0xfe); label2.Size = new Size(0x34, 0x10); label2.TabIndex = 9; label2.Text = "&Filename:"; this._fileNameText.Location = new Point(0x52, 0xfc); this._fileNameText.Size = new Size(0x156, 20); this._fileNameText.TabIndex = 10; this._fileNameText.Text = ""; this._fileNameText.FlatAppearance = true; this._fileNameText.AlwaysShowFocusCues = true; this._fileNameText.TextChanged += new EventHandler(this.OnTextChangedFields); this._codeGroup.Location = new Point(12, 0x116); this._codeGroup.Size = new Size(0x1b7, 0x10); this._codeGroup.TabIndex = 11; this._codeGroup.Text = "Code"; this._codeGroup.Visible = false; this._languageLabel.Location = new Point(0x10, 0x12b); this._languageLabel.Size = new Size(0x40, 0x10); this._languageLabel.TabIndex = 12; this._languageLabel.Text = "L&anguage:"; this._languageLabel.Visible = false; this._languageCombo.DropDownStyle = ComboBoxStyle.DropDownList; this._languageCombo.FlatAppearance = true; this._languageCombo.AlwaysShowFocusCues = true; this._languageCombo.Location = new Point(0x52, 0x127); this._languageCombo.Size = new Size(130, 0x15); this._languageCombo.TabIndex = 13; this._languageCombo.Visible = false; this._languageCombo.SelectedIndexChanged += new EventHandler(this.OnSelectedIndexChangedLanguageCombo); this._classInfoCheckBox.Location = new Point(0x10, 320); this._classInfoCheckBox.Size = new Size(200, 0x10); this._classInfoCheckBox.TabIndex = 14; this._classInfoCheckBox.Visible = false; this._classInfoCheckBox.CheckedChanged += new EventHandler(this.OnCheckedChangedClassInfoCheckBox); this._classLabel.Location = new Point(0x10, 340); this._classLabel.Size = new Size(0x40, 0x10); this._classLabel.TabIndex = 15; this._classLabel.Text = "&Class:"; this._classLabel.Visible = false; this._classText.Location = new Point(0x52, 0x152); this._classText.Size = new Size(130, 20); this._classText.TabIndex = 0x10; this._classText.Text = ""; this._classText.FlatAppearance = true; this._classText.AlwaysShowFocusCues = true; this._classText.Visible = false; this._classText.TextChanged += new EventHandler(this.OnTextChangedFields); this._namespaceLabel.Location = new Point(230, 340); this._namespaceLabel.Size = new Size(0x40, 0x10); this._namespaceLabel.TabIndex = 0x11; this._namespaceLabel.Text = "&Namespace:"; this._namespaceLabel.Visible = false; this._namespaceText.Location = new Point(320, 0x152); this._namespaceText.Size = new Size(130, 20); this._namespaceText.TabIndex = 0x12; this._namespaceText.Text = ""; this._namespaceText.FlatAppearance = true; this._namespaceText.AlwaysShowFocusCues = true; this._namespaceText.Visible = false; this._namespaceText.TextChanged += new EventHandler(this.OnTextChangedFields); this._okButton.Location = new Point(0x12a, 0x170); this._okButton.TabIndex = 0x13; this._okButton.Text = "OK"; this._okButton.Click += new EventHandler(this.OnClickOKButton); this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0x17a, 0x170); this._cancelButton.TabIndex = 20; this._cancelButton.Text = "Cancel"; this.AutoScaleBaseSize = new Size(5, 13); base.ClientSize = new Size(0x1d2, 400); base.Controls.AddRange(new Control[] { this._cancelButton, this._okButton, this._namespaceText, this._namespaceLabel, this._classText, this._classLabel, this._classInfoCheckBox, this._locationPickerButton, this._languageCombo, this._languageLabel, this._codeGroup, label3, this._locationText, this._fileNameText, label2, panel3, panel2, this._listViewButton, this._iconViewButton, panel, label }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.AcceptButton = this._okButton; base.CancelButton = this._cancelButton; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Add New File"; base.Icon = new Icon(typeof(AddFileDialog), "AddFileDialog.ico"); panel.ResumeLayout(false); panel2.ResumeLayout(false); panel3.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { this._tableListBox = new ListBox(); this._tablePanel = new Panel(); this._columnsPanel = new Panel(); this._columnsListView = new ListView(); this._sqlTextBox = new MxTextBox(); this._selectAllButton = new Button(); this._selectNoneButton = new Button(); this._tablesLabel = new Label(); this._columnsLabel = new Label(); this._previewLabel = new Label(); this._whereClauseBuilder = new WhereClauseBuilder(); this._whereLabel = new Label(); this._tablePanel.SuspendLayout(); this._columnsPanel.SuspendLayout(); base.SuspendLayout(); this._tableListBox.BorderStyle = BorderStyle.None; this._tableListBox.Dock = DockStyle.Fill; this._tableListBox.IntegralHeight = false; this._tableListBox.Location = new Point(1, 1); this._tableListBox.Name = "_tableListBox"; this._tableListBox.TabIndex = 0; this._tableListBox.SelectedIndexChanged += new EventHandler(this._tableListBox_SelectedIndexChanged); this._tablePanel.BackColor = SystemColors.ControlDark; this._tablePanel.Controls.AddRange(new Control[] { this._tableListBox }); this._tablePanel.DockPadding.All = 1; this._tablePanel.Location = new Point(12, 0x10); this._tablePanel.Name = "_tablePanel"; this._tablePanel.Size = new Size(120, 0x54); this._tablePanel.TabIndex = 2; this._columnsPanel.BackColor = SystemColors.ControlDark; this._columnsPanel.Controls.AddRange(new Control[] { this._columnsListView }); this._columnsPanel.DockPadding.All = 1; this._columnsPanel.Location = new Point(140, 0x10); this._columnsPanel.Name = "_columnsPanel"; this._columnsPanel.Size = new Size(0x100, 0x54); this._columnsPanel.TabIndex = 4; this._columnsListView.BorderStyle = BorderStyle.None; this._columnsListView.CheckBoxes = true; this._columnsListView.Dock = DockStyle.Fill; this._columnsListView.FullRowSelect = true; this._columnsListView.Location = new Point(1, 1); this._columnsListView.MultiSelect = false; this._columnsListView.Name = "_columnsListView"; this._columnsListView.TabIndex = 0; this._columnsListView.View = View.List; this._columnsListView.ItemCheck += new ItemCheckEventHandler(this.OnColumnsListViewItemCheck); this._sqlTextBox.AlwaysShowFocusCues = true; this._sqlTextBox.FlatAppearance = true; this._sqlTextBox.Location = new Point(12, 0xe4); this._sqlTextBox.Multiline = true; this._sqlTextBox.Name = "_sqlTextBox"; this._sqlTextBox.ReadOnly = true; this._sqlTextBox.Size = new Size(0x1d8, 0x2c); this._sqlTextBox.ScrollBars = ScrollBars.Vertical; this._sqlTextBox.TabIndex = 10; this._sqlTextBox.Text = ""; this._selectAllButton.FlatStyle = FlatStyle.System; this._selectAllButton.Location = new Point(0x198, 0x10); this._selectAllButton.Name = "_selectAllButton"; this._selectAllButton.TabIndex = 5; this._selectAllButton.Text = "Select &All"; this._selectAllButton.Click += new EventHandler(this._selectAllButton_Click); this._selectNoneButton.FlatStyle = FlatStyle.System; this._selectNoneButton.Location = new Point(0x198, 0x2c); this._selectNoneButton.Name = "_selectNoneButton"; this._selectNoneButton.TabIndex = 6; this._selectNoneButton.Text = "Select Non&e"; this._selectNoneButton.Click += new EventHandler(this._selectNoneButton_Click); this._tablesLabel.Location = new Point(12, 0); this._tablesLabel.Name = "_tablesLabel"; this._tablesLabel.Size = new Size(0x38, 0x10); this._tablesLabel.TabIndex = 1; this._tablesLabel.Text = "&Tables:"; this._columnsLabel.Location = new Point(140, 0); this._columnsLabel.Name = "_columnsLabel"; this._columnsLabel.Size = new Size(0x38, 0x10); this._columnsLabel.TabIndex = 3; this._columnsLabel.Text = "C&olumns:"; this._previewLabel.Location = new Point(12, 0xd4); this._previewLabel.Name = "_previewLabel"; this._previewLabel.Size = new Size(0x58, 0x10); this._previewLabel.TabIndex = 9; this._previewLabel.Text = "&Preview:"; this._whereClauseBuilder.Location = new Point(4, 0x70); this._whereClauseBuilder.Name = "_whereClauseBuilder"; this._whereClauseBuilder.Size = new Size(0x1e8, 100); this._whereClauseBuilder.TabIndex = 8; this._whereLabel.Location = new Point(12, 0x68); this._whereLabel.Name = "_whereLabel"; this._whereLabel.Size = new Size(90, 0x10); this._whereLabel.TabIndex = 7; this._whereLabel.Text = "&WHERE clause:"; base.Controls.AddRange(new Control[] { this._whereLabel, this._whereClauseBuilder, this._previewLabel, this._columnsLabel, this._tablesLabel, this._selectNoneButton, this._selectAllButton, this._sqlTextBox, this._columnsPanel, this._tablePanel }); base.Caption = "Construct a SELECT query"; base.Description = "Check the columns you want returned and build the WHERE clause."; base.Name = "BuildSelectPanel"; base.Size = new Size(500, 0x124); this._tablePanel.ResumeLayout(false); this._columnsPanel.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { this._databaseLabel = new MxLabel(); this._createDbLink = new LinkLabel(); this._serverLabel = new MxLabel(); this._serverEdit = new MxTextBox(); this._passwordEdit = new MxTextBox(); this._userNameEdit = new MxTextBox(); this._passwordLabel = new MxLabel(); this._connectButton = new MxButton(); this._databaseCombo = new MxComboBox(); this._userNameLabel = new MxLabel(); this._cancelButton = new MxButton(); this._windowsRadio = new MxRadioButton(); this._sqlRadio = new MxRadioButton(); base.SuspendLayout(); this._databaseLabel.Location = new Point(0x19, 0xda); this._databaseLabel.Name = "_databaseLabel"; this._databaseLabel.Size = new Size(0x38, 13); this._databaseLabel.TabIndex = 8; this._databaseLabel.Text = "&Database:"; this._databaseLabel.TextAlign = ContentAlignment.MiddleLeft; this._createDbLink.Location = new Point(0x18, 260); this._createDbLink.Name = "_createDbLink"; this._createDbLink.Size = new Size(0x90, 13); this._createDbLink.TabIndex = 10; this._createDbLink.TabStop = true; this._createDbLink.Text = "Create a new database"; this._createDbLink.LinkClicked += new LinkLabelLinkClickedEventHandler(this.OnCreateDbLinkClicked); this._serverLabel.Location = new Point(0x18, 0x4c); this._serverLabel.Name = "_serverLabel"; this._serverLabel.Size = new Size(0x29, 13); this._serverLabel.TabIndex = 0; this._serverLabel.Text = "&Server:"; this._serverLabel.TextAlign = ContentAlignment.MiddleLeft; this._serverEdit.AlwaysShowFocusCues = true; this._serverEdit.FlatAppearance = true; this._serverEdit.Location = new Point(0x5d, 0x48); this._serverEdit.Name = "_serverEdit"; this._serverEdit.Size = new Size(260, 20); this._serverEdit.TabIndex = 1; this._serverEdit.Text = "(local)"; this._serverEdit.TextChanged += new EventHandler(this.OnLoginTextChanged); this._passwordEdit.AlwaysShowFocusCues = true; this._passwordEdit.FlatAppearance = true; this._passwordEdit.Location = new Point(120, 0xae); this._passwordEdit.Name = "_passwordEdit"; this._passwordEdit.PasswordStyle = true; this._passwordEdit.Size = new Size(0xe8, 20); this._passwordEdit.TabIndex = 7; this._passwordEdit.Text = ""; this._passwordEdit.TextChanged += new EventHandler(this.OnLoginTextChanged); this._userNameEdit.AlwaysShowFocusCues = true; this._userNameEdit.FlatAppearance = true; this._userNameEdit.Location = new Point(120, 150); this._userNameEdit.Name = "_userNameEdit"; this._userNameEdit.Size = new Size(0xe8, 20); this._userNameEdit.TabIndex = 5; this._userNameEdit.Text = ""; this._userNameEdit.TextChanged += new EventHandler(this.OnLoginTextChanged); this._passwordLabel.Location = new Point(0x2a, 0xb2); this._passwordLabel.Name = "_passwordLabel"; this._passwordLabel.Size = new Size(70, 13); this._passwordLabel.TabIndex = 6; this._passwordLabel.Text = "&Password:"******"_connectButton"; this._connectButton.Size = new Size(0x4d, 0x17); this._connectButton.TabIndex = 11; this._connectButton.Text = "OK"; this._connectButton.Click += new EventHandler(this.OnConnectButtonClicked); this._databaseCombo.AlwaysShowFocusCues = true; this._databaseCombo.DisplayMember = "Name"; this._databaseCombo.DropDownWidth = 0xfb; this._databaseCombo.FlatAppearance = true; this._databaseCombo.Location = new Point(0x5e, 0xd6); this._databaseCombo.Name = "_databaseCombo"; this._databaseCombo.Size = new Size(260, 0x15); this._databaseCombo.TabIndex = 9; this._databaseCombo.ValueMember = "Name"; this._databaseCombo.KeyDown += new KeyEventHandler(this.OnDatabaseComboKeyDown); this._databaseCombo.DropDown += new EventHandler(this.OnDatabaseComboDropDown); this._databaseCombo.SelectedValueChanged += new EventHandler(this.OnDatabaseComboTextChanged); this._databaseCombo.TextChanged += new EventHandler(this.OnDatabaseComboTextChanged); this._userNameLabel.Location = new Point(0x2a, 0x9a); this._userNameLabel.Name = "_userNameLabel"; this._userNameLabel.Size = new Size(0x44, 13); this._userNameLabel.TabIndex = 4; this._userNameLabel.Text = "&User name:"; this._userNameLabel.TextAlign = ContentAlignment.MiddleLeft; this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0x114, 0xfc); this._cancelButton.Name = "_cancelButton"; this._cancelButton.Size = new Size(0x4d, 0x17); this._cancelButton.TabIndex = 12; this._cancelButton.Text = "Cancel"; this._cancelButton.Click += new EventHandler(this.OnCancelButtonClicked); this._windowsRadio.Checked = true; this._windowsRadio.Location = new Point(0x1c, 0x68); this._windowsRadio.Name = "_windowsRadio"; this._windowsRadio.Size = new Size(0xa8, 0x18); this._windowsRadio.TabIndex = 2; this._windowsRadio.TabStop = true; this._windowsRadio.Text = "Windows authentication"; this._windowsRadio.CheckedChanged += new EventHandler(this.OnRadioCheckedChanged); this._sqlRadio.Location = new Point(0x1c, 0x7e); this._sqlRadio.Name = "_sqlRadio"; this._sqlRadio.Size = new Size(0xa8, 0x16); this._sqlRadio.TabIndex = 3; this._sqlRadio.Text = "S&QL Server authentication"; base.AcceptButton = this._connectButton; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(0x17a, 0x120); base.Controls.AddRange(new Control[] { this._passwordEdit, this._userNameEdit, this._sqlRadio, this._windowsRadio, this._createDbLink, this._databaseLabel, this._passwordLabel, this._userNameLabel, this._serverLabel, this._serverEdit, this._databaseCombo, this._cancelButton, this._connectButton }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "DatabaseLoginForm"; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; base.TaskBorderStyle = BorderStyle.FixedSingle; base.TaskCaption = "Connect to SQL or MSDE Database"; base.TaskDescription = "Enter the connection information and select a database."; this.Text = "Connect to Database"; base.ResumeLayout(false); }
private void InitializeUserInterface() { MxLabel label = new MxLabel(); GroupLabel label2 = new GroupLabel(); MxLabel label3 = new MxLabel(); MxLabel label4 = new MxLabel(); this._appRootTextBox = new MxTextBox(); this._cassiniRadioButton = new MxRadioButton(); this._portTextBox = new MxTextBox(); this._iisRadioButton = new MxRadioButton(); this._startButton = new MxButton(); this._cancelButton = new MxButton(); this._appNameTextBox = new MxTextBox(); this._dirBrowseCheckBox = new MxCheckBox(); label.Location = new Point(12, 0x4c); label.Size = new Size(0x74, 0x10); label.TabIndex = 0; label.Text = "Application &Directory:"; this._appRootTextBox.AlwaysShowFocusCues = true; this._appRootTextBox.FlatAppearance = true; this._appRootTextBox.Location = new Point(0x84, 0x48); this._appRootTextBox.Size = new Size(0x128, 20); this._appRootTextBox.TabIndex = 1; this._appRootTextBox.TextChanged += new EventHandler(this.OnAppRootTextBoxTextChanged); label2.Location = new Point(12, 0x62); label2.Size = new Size(0x1a0, 0x10); label2.TabIndex = 2; label2.Text = ""; this._cassiniRadioButton.Checked = true; this._cassiniRadioButton.Location = new Point(20, 120); this._cassiniRadioButton.Size = new Size(220, 20); this._cassiniRadioButton.TabIndex = 3; this._cassiniRadioButton.TabStop = true; this._cassiniRadioButton.Text = "Use ASP.NET Web &Matrix Server"; this._cassiniRadioButton.CheckedChanged += new EventHandler(this.OnCassiniRadioButtonCheckedChanged); label4.Location = new Point(0x24, 0x92); label4.Size = new Size(0x5c, 0x10); label4.TabIndex = 5; label4.Text = "Application &Port:"; this._portTextBox.AlwaysShowFocusCues = true; this._portTextBox.FlatAppearance = true; this._portTextBox.Location = new Point(0x84, 0x8e); this._portTextBox.Numeric = true; this._portTextBox.Size = new Size(0x40, 20); this._portTextBox.TabIndex = 6; this._portTextBox.Text = ""; this._iisRadioButton.Location = new Point(20, 0xac); this._iisRadioButton.Size = new Size(220, 20); this._iisRadioButton.TabIndex = 4; this._iisRadioButton.Text = "Use or create an &IIS Virtual Root"; this._iisRadioButton.CheckedChanged += new EventHandler(this.OnIISRadioButtonCheckedChanged); label3.Location = new Point(0x24, 0xc4); label3.Size = new Size(0x68, 0x10); label3.TabIndex = 7; label3.Text = "Application &Name:"; this._appNameTextBox.AlwaysShowFocusCues = true; this._appNameTextBox.FlatAppearance = true; this._appNameTextBox.Location = new Point(0x84, 0xc0); this._appNameTextBox.Size = new Size(0xcc, 20); this._appNameTextBox.TabIndex = 8; this._appNameTextBox.Text = ""; this._dirBrowseCheckBox.Location = new Point(0x24, 0xd8); this._dirBrowseCheckBox.Name = "_dirBrowseCheckBox"; this._dirBrowseCheckBox.Size = new Size(0xa4, 20); this._dirBrowseCheckBox.TabIndex = 9; this._dirBrowseCheckBox.Text = "Enable Directory &Browsing"; this._startButton.Location = new Point(0x10c, 0xf4); this._startButton.TabIndex = 10; this._startButton.Text = "Start"; this._startButton.Click += new EventHandler(this.OnStartButtonClick); this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0x160, 0xf4); this._cancelButton.TabIndex = 12; this._cancelButton.Text = "Cancel"; base.AcceptButton = this._startButton; this.AutoScaleBaseSize = new Size(5, 13); this.AutoScroll = true; base.CancelButton = this._cancelButton; base.ClientSize = new Size(0x1ba, 0x116); base.Controls.AddRange(new Control[] { this._dirBrowseCheckBox, this._appNameTextBox, label3, this._cancelButton, this._startButton, this._iisRadioButton, this._portTextBox, label4, this._cassiniRadioButton, label2, this._appRootTextBox, label }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.Icon = null; base.MaximizeBox = false; base.MinimizeBox = false; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; base.TaskBorderStyle = BorderStyle.FixedSingle; base.TaskCaption = "Start Web Application"; base.TaskDescription = "Start a Web application at the selected application directory."; base.TaskGlyph = new Bitmap(typeof(StartWebAppDialog), "StartWebAppGlyph.bmp"); this.Text = "Start Web Application"; }
private void InitializeComponent() { this._infoLabel = new MxLabel(); this._fileNameTextBox = new MxTextBox(); this._browseButton = new MxButton(); base.SuspendLayout(); this._infoLabel.Location = new Point(4, 8); this._infoLabel.Name = "_infoLabel"; this._infoLabel.Size = new Size(0x110, 0x10); this._infoLabel.TabIndex = 0; this._infoLabel.Text = "Select a file:"; this._fileNameTextBox.AlwaysShowFocusCues = true; this._fileNameTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this._fileNameTextBox.FlatAppearance = true; this._fileNameTextBox.Location = new Point(4, 0x1c); this._fileNameTextBox.Name = "_fileNameTextBox"; this._fileNameTextBox.Size = new Size(0x150, 20); this._fileNameTextBox.TabIndex = 1; this._fileNameTextBox.Text = ""; this._fileNameTextBox.TextChanged += new EventHandler(this.OnFileNameTextBoxTextChanged); this._browseButton.Anchor = AnchorStyles.Right | AnchorStyles.Top; this._browseButton.Location = new Point(0x158, 0x1c); this._browseButton.Name = "_browseButton"; this._browseButton.Size = new Size(0x19, 0x17); this._browseButton.TabIndex = 2; this._browseButton.Text = "..."; this._browseButton.Click += new EventHandler(this._browseButton_Click); base.Controls.AddRange(new Control[] { this._browseButton, this._fileNameTextBox, this._infoLabel }); base.Caption = "Export snippets"; base.Description = "Select a snippets file to export."; base.Name = "SaveLibraryPanel"; base.Size = new Size(0x178, 0x48); base.ResumeLayout(false); }
private void InitializeComponent() { PictureBox box = new PictureBox(); MxLabel label = new MxLabel(); MxButton button = new MxButton(); MxButton button2 = new MxButton(); this._exceptionLabel = new MxLabel(); this._sendFeedbackButton = new MxButton(); this._detailsButton = new MxButton(); this._detailsTextBox = new MxTextBox(); base.SuspendLayout(); box.Location = new Point(4, 8); box.Size = new Size(0x40, 0x40); box.SizeMode = PictureBoxSizeMode.CenterImage; box.TabIndex = 0; box.TabStop = false; box.Image = SystemIcons.Error.ToBitmap(); label.Location = new Point(0x48, 8); label.Size = new Size(0x170, 0x60); label.TabIndex = 1; label.Text = "An unhandled exception has occurred in the application.\nClick \"Send Feedback\" to submit a bug report with exception details.\nClick \"Continue\" to ignore the error and attempt to continue running the application.\nClick \"Quit\" to end the application immediately."; this._exceptionLabel.Location = new Point(0x48, 0x70); this._exceptionLabel.Size = new Size(0x170, 0x2c); this._exceptionLabel.TabIndex = 2; this._exceptionLabel.Text = "[Exception Message]"; this._sendFeedbackButton.Location = new Point(8, 0xa8); this._sendFeedbackButton.Size = new Size(0x68, 0x17); this._sendFeedbackButton.TabIndex = 3; this._sendFeedbackButton.Text = "Send Feedback..."; this._sendFeedbackButton.Click += new EventHandler(this.OnClickSendFeedbackButton); button.DialogResult = DialogResult.OK; button.Location = new Point(0xd0, 0xa8); button.TabIndex = 4; button.Text = "Continue"; button.Click += new EventHandler(this.OnClickContinueButton); button2.Location = new Point(0x120, 0xa8); button2.TabIndex = 5; button2.Text = "Quit"; button2.Click += new EventHandler(this.OnClickQuitButton); this._detailsButton.Location = new Point(0x170, 0xa8); this._detailsButton.TabIndex = 6; this._detailsButton.Text = "Details >>"; this._detailsButton.Click += new EventHandler(this.OnClickDetailsButton); this._detailsTextBox.Location = new Point(4, 200); this._detailsTextBox.Multiline = true; this._detailsTextBox.ReadOnly = true; this._detailsTextBox.ScrollBars = ScrollBars.Both; this._detailsTextBox.Size = new Size(440, 0xd0); this._detailsTextBox.TabIndex = 7; this._detailsTextBox.TabStop = false; this._detailsTextBox.Text = ""; this._detailsTextBox.WordWrap = false; base.AcceptButton = button; this.AutoScaleBaseSize = new Size(5, 13); base.ClientSize = new Size(0x1c0, 0xc7); base.Controls.AddRange(new Control[] { this._detailsTextBox, this._detailsButton, button2, button, this._sendFeedbackButton, this._exceptionLabel, label, box }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Unhandled Exception"; base.Icon = null; base.ResumeLayout(false); }
private void InitializeComponent() { this._whereClauseBuilder = new WhereClauseBuilder(); this._tableListBox = new ListBox(); this._tablePanel = new Panel(); this._tableLabel = new Label(); this._whereLabel = new Label(); this._sqlTextBox = new MxTextBox(); this._previewLabel = new Label(); this._tablePanel.SuspendLayout(); base.SuspendLayout(); this._whereClauseBuilder.Database = null; this._whereClauseBuilder.Location = new Point(8, 0x70); this._whereClauseBuilder.Name = "_whereClauseBuilder"; this._whereClauseBuilder.ServiceProvider = null; this._whereClauseBuilder.Size = new Size(0x1e8, 100); this._whereClauseBuilder.TabIndex = 4; this._tableListBox.BorderStyle = BorderStyle.None; this._tableListBox.Dock = DockStyle.Fill; this._tableListBox.IntegralHeight = false; this._tableListBox.Location = new Point(1, 1); this._tableListBox.Name = "_tableListBox"; this._tableListBox.Size = new Size(470, 0x56); this._tableListBox.TabIndex = 1; this._tableListBox.SelectedIndexChanged += new EventHandler(this.OnTableListBoxSelectedIndexChanged); this._tablePanel.BackColor = SystemColors.ControlDark; this._tablePanel.Controls.AddRange(new Control[] { this._tableListBox }); this._tablePanel.DockPadding.All = 1; this._tablePanel.Location = new Point(0x10, 0x10); this._tablePanel.Name = "_tablePanel"; this._tablePanel.Size = new Size(0x1d8, 0x54); this._tablePanel.TabIndex = 2; this._tableLabel.Location = new Point(0x10, 0); this._tableLabel.Name = "_tableLabel"; this._tableLabel.Size = new Size(0x2c, 0x10); this._tableLabel.TabIndex = 1; this._tableLabel.Text = "&Table:"; this._whereLabel.Location = new Point(0x10, 0x68); this._whereLabel.Name = "_whereLabel"; this._whereLabel.Size = new Size(0x38, 0x10); this._whereLabel.TabIndex = 3; this._whereLabel.Text = "W&HERE:"; this._sqlTextBox.Location = new Point(0x10, 0xe4); this._sqlTextBox.Multiline = true; this._sqlTextBox.Name = "_sqlTextBox"; this._sqlTextBox.ReadOnly = true; this._sqlTextBox.ScrollBars = ScrollBars.Vertical; this._sqlTextBox.Size = new Size(0x1d4, 0x2c); this._sqlTextBox.TabIndex = 6; this._sqlTextBox.Text = ""; this._previewLabel.Location = new Point(0x10, 0xd4); this._previewLabel.Name = "_previewLabel"; this._previewLabel.Size = new Size(0x38, 0x10); this._previewLabel.TabIndex = 5; this._previewLabel.Text = "&Preview:"; base.Controls.AddRange(new Control[] { this._previewLabel, this._sqlTextBox, this._whereLabel, this._tableLabel, this._tablePanel, this._whereClauseBuilder }); base.Caption = "BUILD a DELECT Query"; base.Description = "Construct a DELETE statement by selecting a table and specifiying a WHERE clause."; base.Name = "BuildDeletePanel"; base.Size = new Size(0x1f8, 0x124); this._tablePanel.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { this._toLabel = new MxLabel(); this._fromLabel = new MxLabel(); this._subjectLabel = new MxLabel(); this._toTextBox = new MxTextBox(); this._subjectTextBox = new MxTextBox(); this._fromTextBox = new MxTextBox(); this._okButton = new MxButton(); this._cancelButton = new MxButton(); this._smtpServerLabel = new MxLabel(); this._smtpServerTextBox = new MxTextBox(); this._formatLabel = new MxLabel(); this._textFormatRadioButton = new MxRadioButton(); this._htmlFormatRadioButton = new MxRadioButton(); base.SuspendLayout(); this._toLabel.FlatStyle = FlatStyle.System; this._toLabel.Location = new Point(8, 0x10); this._toLabel.Name = "_toLabel"; this._toLabel.Size = new Size(0x1c, 0x10); this._toLabel.TabIndex = 0; this._toLabel.Text = "&To:"; this._fromLabel.FlatStyle = FlatStyle.System; this._fromLabel.Location = new Point(8, 40); this._fromLabel.Name = "_fromLabel"; this._fromLabel.Size = new Size(40, 0x10); this._fromLabel.TabIndex = 1; this._fromLabel.Text = "&From:"; this._subjectLabel.FlatStyle = FlatStyle.System; this._subjectLabel.Location = new Point(8, 0x40); this._subjectLabel.Name = "_subjectLabel"; this._subjectLabel.Size = new Size(0x30, 0x10); this._subjectLabel.TabIndex = 4; this._subjectLabel.Text = "&Subject:"; this._toTextBox.AlwaysShowFocusCues = true; this._toTextBox.FlatAppearance = true; this._toTextBox.Location = new Point(0x60, 8); this._toTextBox.Name = "_toTextBox"; this._toTextBox.Size = new Size(0x160, 20); this._toTextBox.TabIndex = 1; this._toTextBox.Text = "*****@*****.**"; this._subjectTextBox.AlwaysShowFocusCues = true; this._subjectTextBox.FlatAppearance = true; this._subjectTextBox.Location = new Point(0x60, 0x38); this._subjectTextBox.Name = "_subjectTextBox"; this._subjectTextBox.Size = new Size(0x160, 20); this._subjectTextBox.TabIndex = 5; this._subjectTextBox.Text = "Email Subject"; this._fromTextBox.AlwaysShowFocusCues = true; this._fromTextBox.FlatAppearance = true; this._fromTextBox.Location = new Point(0x60, 0x20); this._fromTextBox.Name = "_fromTextBox"; this._fromTextBox.Size = new Size(0x160, 20); this._fromTextBox.TabIndex = 2; this._fromTextBox.Text = "*****@*****.**"; this._okButton.FlatStyle = FlatStyle.System; this._okButton.Name = "_okButton"; this._okButton.TabIndex = 0; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 0; this._smtpServerLabel.FlatStyle = FlatStyle.System; this._smtpServerLabel.Location = new Point(8, 120); this._smtpServerLabel.Name = "_smtpServerLabel"; this._smtpServerLabel.Size = new Size(80, 0x10); this._smtpServerLabel.TabIndex = 9; this._smtpServerLabel.Text = "S&MTP Server:"; this._smtpServerTextBox.AlwaysShowFocusCues = true; this._smtpServerTextBox.FlatAppearance = true; this._smtpServerTextBox.Location = new Point(0x60, 120); this._smtpServerTextBox.Name = "_smtpServerTextBox"; this._smtpServerTextBox.Size = new Size(0x160, 20); this._smtpServerTextBox.TabIndex = 10; this._smtpServerTextBox.Text = "localhost"; this._formatLabel.FlatStyle = FlatStyle.System; this._formatLabel.Location = new Point(8, 0x58); this._formatLabel.Name = "_formatLabel"; this._formatLabel.Size = new Size(0x4c, 0x10); this._formatLabel.TabIndex = 6; this._formatLabel.Text = "Mail Format:"; this._textFormatRadioButton.Checked = true; this._textFormatRadioButton.FlatStyle = FlatStyle.System; this._textFormatRadioButton.Location = new Point(0x60, 0x58); this._textFormatRadioButton.Name = "_textFormatRadioButton"; this._textFormatRadioButton.Size = new Size(0x48, 0x10); this._textFormatRadioButton.TabIndex = 7; this._textFormatRadioButton.TabStop = true; this._textFormatRadioButton.Text = "&Plain Text"; this._htmlFormatRadioButton.FlatStyle = FlatStyle.System; this._htmlFormatRadioButton.Location = new Point(0xb0, 0x58); this._htmlFormatRadioButton.Name = "_htmlFormatRadioButton"; this._htmlFormatRadioButton.Size = new Size(0x38, 0x10); this._htmlFormatRadioButton.TabIndex = 8; this._htmlFormatRadioButton.Text = "&HTML"; base.Caption = "Send Email Message"; base.Description = "Generate code to send email using the System.Web.Mail classes."; base.Controls.AddRange(new Control[] { this._htmlFormatRadioButton, this._textFormatRadioButton, this._formatLabel, this._smtpServerTextBox, this._smtpServerLabel, this._fromTextBox, this._subjectTextBox, this._toTextBox, this._subjectLabel, this._fromLabel, this._toLabel }); base.Name = "MailMessageWizardPanel"; base.Size = new Size(0x1c8, 0x98); base.ResumeLayout(false); }
private void InitializeComponent() { this._columnLabel = new Label(); this._columnsPanel = new Panel(); this._columnsListView = new ListView(); this._tablePanel = new Panel(); this._tableListBox = new ListBox(); this._tableLabel = new Label(); this._whereClauseBuilder = new WhereClauseBuilder(); this._previewLabel = new Label(); this._sqlTextBox = new MxTextBox(); this._whereLabel = new Label(); this._columnsPanel.SuspendLayout(); this._tablePanel.SuspendLayout(); base.SuspendLayout(); this._columnLabel.Location = new Point(0x7c, 0); this._columnLabel.Name = "_columnLabel"; this._columnLabel.Size = new Size(60, 0x10); this._columnLabel.TabIndex = 3; this._columnLabel.Text = "C&olumn:"; this._columnsPanel.BackColor = SystemColors.ControlDark; this._columnsPanel.Controls.AddRange(new Control[] { this._columnsListView }); this._columnsPanel.DockPadding.All = 1; this._columnsPanel.Location = new Point(0x7c, 0x10); this._columnsPanel.Name = "_columnsPanel"; this._columnsPanel.Size = new Size(0x160, 0x54); this._columnsPanel.TabIndex = 4; this._columnsListView.BorderStyle = BorderStyle.None; this._columnsListView.CheckBoxes = true; this._columnsListView.Dock = DockStyle.Fill; this._columnsListView.HeaderStyle = ColumnHeaderStyle.Nonclickable; this._columnsListView.HideSelection = false; this._columnsListView.Location = new Point(1, 1); this._columnsListView.MultiSelect = false; this._columnsListView.Name = "_columnsListView"; this._columnsListView.TabIndex = 0; this._columnsListView.View = View.List; this._columnsListView.SelectedIndexChanged += new EventHandler(this.OnColumnsListViewSelectedIndexChanged); this._columnsListView.ItemCheck += new ItemCheckEventHandler(this.OnColumnsListViewItemCheck); this._tablePanel.BackColor = SystemColors.ControlDark; this._tablePanel.Controls.AddRange(new Control[] { this._tableListBox }); this._tablePanel.DockPadding.All = 1; this._tablePanel.Location = new Point(8, 0x10); this._tablePanel.Name = "_tablePanel"; this._tablePanel.Size = new Size(0x70, 0x54); this._tablePanel.TabIndex = 2; this._tableListBox.BorderStyle = BorderStyle.None; this._tableListBox.Dock = DockStyle.Fill; this._tableListBox.IntegralHeight = false; this._tableListBox.Location = new Point(1, 1); this._tableListBox.Name = "_tableListBox"; this._tableListBox.TabIndex = 0; this._tableListBox.SelectedIndexChanged += new EventHandler(this.OnTableListBoxSelectedIndexChanged); this._tableLabel.Location = new Point(8, 0); this._tableLabel.Name = "_tableLabel"; this._tableLabel.Size = new Size(0x30, 0x10); this._tableLabel.TabIndex = 1; this._tableLabel.Text = "&Table:"; this._whereClauseBuilder.Database = null; this._whereClauseBuilder.Location = new Point(0, 0x70); this._whereClauseBuilder.Name = "_whereClauseBuilder"; this._whereClauseBuilder.ServiceProvider = null; this._whereClauseBuilder.Size = new Size(0x1e8, 100); this._whereClauseBuilder.TabIndex = 6; this._whereClauseBuilder.ClauseRemoved += new EventHandler(this.OnWhereClauseBuilderChanged); this._whereClauseBuilder.ClauseAdded += new EventHandler(this.OnWhereClauseBuilderChanged); this._previewLabel.Location = new Point(12, 0xd4); this._previewLabel.Name = "_previewLabel"; this._previewLabel.Size = new Size(0x38, 0x10); this._previewLabel.TabIndex = 7; this._previewLabel.Text = "&Preview:"; this._sqlTextBox.Location = new Point(12, 0xe4); this._sqlTextBox.Multiline = true; this._sqlTextBox.Name = "_sqlTextBox"; this._sqlTextBox.ReadOnly = true; this._sqlTextBox.ScrollBars = ScrollBars.Vertical; this._sqlTextBox.Size = new Size(0x1d4, 0x2c); this._sqlTextBox.TabIndex = 8; this._sqlTextBox.Text = ""; this._whereLabel.Location = new Point(8, 0x68); this._whereLabel.Name = "_whereLabel"; this._whereLabel.Size = new Size(0x38, 0x10); this._whereLabel.TabIndex = 5; this._whereLabel.Text = "&WHERE:"; base.Controls.AddRange(new Control[] { this._whereLabel, this._previewLabel, this._sqlTextBox, this._whereClauseBuilder, this._columnLabel, this._columnsPanel, this._tablePanel, this._tableLabel }); base.Caption = "Construct an UPDATE query"; base.Description = "Select the columns you want to update and construct a WHERE clause."; base.Name = "BuildUpdatePanel"; base.Size = new Size(0x1ec, 0x124); this._columnsPanel.ResumeLayout(false); this._tablePanel.ResumeLayout(false); base.ResumeLayout(false); }
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); }
private void InitializeComponent() { this._leftTableComboBox = new MxComboBox(); this._leftColumnListBox = new ListBox(); this._leftPanel = new Panel(); this._operatorComboBox = new MxComboBox(); this._filterRadioButton = new RadioButton(); this.radioButton1 = new RadioButton(); this._filterValueTextBox = new MxTextBox(); this._rightTableComboBox = new MxComboBox(); this._rightPanel = new Panel(); this._rightColumnListBox = new ListBox(); this._okButton = new Button(); this._cancelButton = new Button(); this._operatorLabel = new Label(); this._leftOperandGroupBox = new GroupBox(); this._leftTablesLabel = new Label(); this._leftColumnsLabel = new Label(); this._rightOperandGroupBox = new GroupBox(); this._rightColumnLabel = new Label(); this._rightTableLabel = new Label(); this._leftPanel.SuspendLayout(); this._rightPanel.SuspendLayout(); this._leftOperandGroupBox.SuspendLayout(); this._rightOperandGroupBox.SuspendLayout(); base.SuspendLayout(); this._leftTableComboBox.AlwaysShowFocusCues = true; this._leftTableComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this._leftTableComboBox.FlatAppearance = true; this._leftTableComboBox.InitialText = null; this._leftTableComboBox.Location = new Point(12, 40); this._leftTableComboBox.Name = "_leftTableComboBox"; this._leftTableComboBox.Size = new Size(0xa4, 0x15); this._leftTableComboBox.TabIndex = 2; this._leftTableComboBox.SelectedIndexChanged += new EventHandler(this._leftTableComboBox_SelectedIndexChanged); this._leftColumnListBox.BorderStyle = BorderStyle.None; this._leftColumnListBox.Dock = DockStyle.Fill; this._leftColumnListBox.IntegralHeight = false; this._leftColumnListBox.Location = new Point(1, 1); this._leftColumnListBox.Name = "_leftColumnListBox"; this._leftColumnListBox.Size = new Size(0xa2, 0xb2); this._leftColumnListBox.TabIndex = 1; this._leftColumnListBox.SelectedIndexChanged += new EventHandler(this._leftColumnListBox_SelectedIndexChanged); this._leftPanel.BackColor = SystemColors.ControlDark; this._leftPanel.Controls.AddRange(new Control[] { this._leftColumnListBox }); this._leftPanel.DockPadding.All = 1; this._leftPanel.Location = new Point(12, 0x54); this._leftPanel.Name = "_leftPanel"; this._leftPanel.Size = new Size(0xa4, 180); this._leftPanel.TabIndex = 4; this._operatorComboBox.AlwaysShowFocusCues = true; this._operatorComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this._operatorComboBox.FlatAppearance = true; this._operatorComboBox.InitialText = null; this._operatorComboBox.Items.AddRange(new object[] { "=", "<", ">", "<=", ">=", "<>", "is null", "is not null" }); this._operatorComboBox.Location = new Point(0xd0, 0x80); this._operatorComboBox.Name = "_operatorComboBox"; this._operatorComboBox.Size = new Size(0x5c, 0x15); this._operatorComboBox.TabIndex = 3; this._filterRadioButton.Checked = true; this._filterRadioButton.FlatStyle = FlatStyle.System; this._filterRadioButton.Location = new Point(12, 20); this._filterRadioButton.Name = "_filterRadioButton"; this._filterRadioButton.Size = new Size(0x34, 0x10); this._filterRadioButton.TabIndex = 1; this._filterRadioButton.TabStop = true; this._filterRadioButton.Text = "&Filter"; this._filterRadioButton.CheckedChanged += new EventHandler(this._filterRadioButton_CheckedChanged); this.radioButton1.FlatStyle = FlatStyle.System; this.radioButton1.Location = new Point(12, 0x40); this.radioButton1.Name = "radioButton1"; this.radioButton1.Size = new Size(0x34, 0x10); this.radioButton1.TabIndex = 3; this.radioButton1.Text = "&Join"; this._filterValueTextBox.AlwaysShowFocusCues = true; this._filterValueTextBox.FlatAppearance = true; this._filterValueTextBox.Location = new Point(0x1c, 40); this._filterValueTextBox.Name = "_filterValueTextBox"; this._filterValueTextBox.Size = new Size(0xb0, 20); this._filterValueTextBox.TabIndex = 2; this._filterValueTextBox.Text = ""; this._rightTableComboBox.AlwaysShowFocusCues = true; this._rightTableComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this._rightTableComboBox.Enabled = false; this._rightTableComboBox.FlatAppearance = true; this._rightTableComboBox.InitialText = null; this._rightTableComboBox.Location = new Point(0x1c, 0x68); this._rightTableComboBox.Name = "_rightTableComboBox"; this._rightTableComboBox.Size = new Size(0xb0, 0x15); this._rightTableComboBox.TabIndex = 4; this._rightTableComboBox.SelectedIndexChanged += new EventHandler(this._rightTableComboBox_SelectedIndexChanged); this._rightPanel.BackColor = SystemColors.ControlDark; this._rightPanel.Controls.AddRange(new Control[] { this._rightColumnListBox }); this._rightPanel.DockPadding.All = 1; this._rightPanel.Location = new Point(0x1c, 0x98); this._rightPanel.Name = "_rightPanel"; this._rightPanel.Size = new Size(0xb0, 0x70); this._rightPanel.TabIndex = 6; this._rightColumnListBox.BorderStyle = BorderStyle.None; this._rightColumnListBox.Dock = DockStyle.Fill; this._rightColumnListBox.Enabled = false; this._rightColumnListBox.IntegralHeight = false; this._rightColumnListBox.Location = new Point(1, 1); this._rightColumnListBox.Name = "_rightColumnListBox"; this._rightColumnListBox.Size = new Size(0xae, 110); this._rightColumnListBox.TabIndex = 1; this._okButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._okButton.FlatStyle = FlatStyle.System; this._okButton.Location = new Point(0x16c, 0x128); this._okButton.Name = "_okButton"; this._okButton.TabIndex = 9; this._okButton.Text = "&OK"; this._okButton.Click += new EventHandler(this._okButton_Click); this._cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.Location = new Point(0x1bc, 0x128); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 10; this._cancelButton.Text = "Ca&ncel"; this._cancelButton.Click += new EventHandler(this._cancelButton_Click); this._operatorLabel.Location = new Point(0xd0, 0x6c); this._operatorLabel.Name = "_operatorLabel"; this._operatorLabel.Size = new Size(0x48, 0x10); this._operatorLabel.TabIndex = 2; this._operatorLabel.Text = "O&perator:"; this._leftOperandGroupBox.Controls.AddRange(new Control[] { this._leftTablesLabel, this._leftColumnsLabel, this._leftTableComboBox, this._leftPanel }); this._leftOperandGroupBox.FlatStyle = FlatStyle.System; this._leftOperandGroupBox.Location = new Point(8, 12); this._leftOperandGroupBox.Name = "_leftOperandGroupBox"; this._leftOperandGroupBox.Size = new Size(0xc0, 0x114); this._leftOperandGroupBox.TabIndex = 1; this._leftOperandGroupBox.TabStop = false; this._leftOperandGroupBox.Text = "&Left Operand"; this._leftTablesLabel.Location = new Point(8, 20); this._leftTablesLabel.Name = "_leftTablesLabel"; this._leftTablesLabel.Size = new Size(0x48, 0x10); this._leftTablesLabel.TabIndex = 1; this._leftTablesLabel.Text = "&Table:"; this._leftColumnsLabel.Location = new Point(8, 0x40); this._leftColumnsLabel.Name = "_leftColumnsLabel"; this._leftColumnsLabel.Size = new Size(0x48, 0x10); this._leftColumnsLabel.TabIndex = 3; this._leftColumnsLabel.Text = "&Column:"; this._rightOperandGroupBox.Controls.AddRange(new Control[] { this._rightColumnLabel, this._rightTableLabel, this._filterValueTextBox, this._rightPanel, this.radioButton1, this._rightTableComboBox, this._filterRadioButton }); this._rightOperandGroupBox.FlatStyle = FlatStyle.System; this._rightOperandGroupBox.Location = new Point(0x130, 12); this._rightOperandGroupBox.Name = "_rightOperandGroupBox"; this._rightOperandGroupBox.Size = new Size(0xd8, 0x114); this._rightOperandGroupBox.TabIndex = 4; this._rightOperandGroupBox.TabStop = false; this._rightOperandGroupBox.Text = "&Right Operand"; this._rightColumnLabel.Location = new Point(0x18, 0x84); this._rightColumnLabel.Name = "_rightColumnLabel"; this._rightColumnLabel.Size = new Size(0x48, 0x10); this._rightColumnLabel.TabIndex = 5; this._rightColumnLabel.Text = "Colu&mn:"; this._rightTableLabel.Location = new Point(0x18, 0x54); this._rightTableLabel.Name = "_rightTableLabel"; this._rightTableLabel.Size = new Size(0x48, 0x10); this._rightTableLabel.TabIndex = 4; this._rightTableLabel.Text = "T&able:"; base.AcceptButton = this._okButton; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(0x216, 0x144); base.Controls.AddRange(new Control[] { this._rightOperandGroupBox, this._leftOperandGroupBox, this._operatorLabel, this._cancelButton, this._okButton, this._operatorComboBox }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "CreateClauseDialog"; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "WHERE Clause Builder"; this._leftPanel.ResumeLayout(false); this._rightPanel.ResumeLayout(false); this._leftOperandGroupBox.ResumeLayout(false); this._rightOperandGroupBox.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { this._okButton = new MxButton(); this._cancelButton = new MxButton(); this._rowsLabel = new MxLabel(); this._columnsLabel = new MxLabel(); this._widthLabel = new MxLabel(); this._heightLabel = new MxLabel(); this._rowTextBox = new MxTextBox(); this._columnsTextBox = new MxTextBox(); this._widthTextBox = new MxTextBox(); this._heightTextBox = new MxTextBox(); base.SuspendLayout(); this._okButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._okButton.Location = new Point(0x80, 0x44); this._okButton.Name = "_okButton"; this._okButton.TabIndex = 8; this._okButton.Text = "OK"; this._okButton.Click += new EventHandler(this.OnOKButtonClick); this._cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0xd0, 0x44); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 9; this._cancelButton.Text = "Cancel"; this._cancelButton.Click += new EventHandler(this.OnCancelButtonClick); this._rowsLabel.Location = new Point(8, 0x10); this._rowsLabel.Name = "_rowsLabel"; this._rowsLabel.Size = new Size(0x34, 0x10); this._rowsLabel.TabIndex = 0; this._rowsLabel.Text = "&Rows:"; this._columnsLabel.Location = new Point(8, 40); this._columnsLabel.Name = "_columnsLabel"; this._columnsLabel.Size = new Size(0x34, 0x10); this._columnsLabel.TabIndex = 4; this._columnsLabel.Text = "&Columns:"; this._widthLabel.Anchor = AnchorStyles.Right | AnchorStyles.Top; this._widthLabel.Location = new Point(0xac, 0x10); this._widthLabel.Name = "_widthLabel"; this._widthLabel.Size = new Size(0x24, 0x10); this._widthLabel.TabIndex = 2; this._widthLabel.Text = "&Width:"; this._heightLabel.Anchor = AnchorStyles.Right | AnchorStyles.Top; this._heightLabel.Location = new Point(0xac, 40); this._heightLabel.Name = "_heightLabel"; this._heightLabel.Size = new Size(0x2f, 0x10); this._heightLabel.TabIndex = 6; this._heightLabel.Text = "&Height:"; this._rowTextBox.AlwaysShowFocusCues = true; this._rowTextBox.FlatAppearance = true; this._rowTextBox.Location = new Point(0x44, 12); this._rowTextBox.Name = "_rowTextBox"; this._rowTextBox.Numeric = true; this._rowTextBox.Size = new Size(60, 20); this._rowTextBox.TabIndex = 1; this._rowTextBox.Text = "3"; this._columnsTextBox.AlwaysShowFocusCues = true; this._columnsTextBox.FlatAppearance = true; this._columnsTextBox.Location = new Point(0x44, 0x24); this._columnsTextBox.Name = "_columnsTextBox"; this._columnsTextBox.Numeric = true; this._columnsTextBox.Size = new Size(60, 20); this._columnsTextBox.TabIndex = 5; this._columnsTextBox.Text = "3"; this._widthTextBox.AlwaysShowFocusCues = true; this._widthTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Top; this._widthTextBox.FlatAppearance = true; this._widthTextBox.Location = new Point(0xe0, 12); this._widthTextBox.Name = "_widthTextBox"; this._widthTextBox.Numeric = true; this._widthTextBox.Size = new Size(60, 20); this._widthTextBox.TabIndex = 3; this._widthTextBox.Text = "300"; this._heightTextBox.AlwaysShowFocusCues = true; this._heightTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Top; this._heightTextBox.FlatAppearance = true; this._heightTextBox.Location = new Point(0xe0, 0x24); this._heightTextBox.Name = "_heightTextBox"; this._heightTextBox.Numeric = true; this._heightTextBox.Size = new Size(60, 20); this._heightTextBox.TabIndex = 7; this._heightTextBox.Text = "150"; base.AcceptButton = this._okButton; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(290, 100); base.Controls.AddRange(new Control[] { this._heightTextBox, this._widthTextBox, this._columnsTextBox, this._rowTextBox, this._heightLabel, this._widthLabel, this._columnsLabel, this._rowsLabel, this._cancelButton, this._okButton }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "InsertTableDialog"; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Insert Table"; base.ResumeLayout(false); }
private void OnPreviewButtonClick(object sender, EventArgs e) { bool flag = false; string previewQuery = ((Microsoft.Matrix.Plugins.CodeWizards.Data.QueryBuilder) base.WizardForm).PreviewQuery; if (previewQuery != null) { IDbConnection connection = ((IDataProviderDatabase) this.Database).CreateConnection(); try { IDbCommand selectCommand = ((IDataProviderDatabase) this.Database).CreateCommand(previewQuery); selectCommand.Connection = connection; if (this.Parameters.Count > 0) { MxForm form = new MxForm(base.ServiceProvider); form.StartPosition = FormStartPosition.CenterParent; form.ShowInTaskbar = false; form.MinimizeBox = false; form.MaximizeBox = false; form.FormBorderStyle = FormBorderStyle.FixedDialog; form.Text = "Preview"; int height = (((this.Parameters.Count * 0x18) + 30) + 40) + 0x7c; form.Size = new Size(0x176, height); int y = 4; Label label = new Label(); label.Text = "Enter test values for the following query:"; label.Location = new Point(12, y); label.Size = new Size(350, 0x10); form.Controls.Add(label); y += 20; MxTextBox box = new MxTextBox(); box.ReadOnly = true; box.Text = previewQuery; box.Multiline = true; box.Location = new Point(12, y); box.Size = new Size(350, 100); form.Controls.Add(box); y += 100; this._previewTextBoxes = new HybridDictionary(true); foreach (QueryParameter parameter in this.Parameters) { Label label2 = new Label(); label2.Text = parameter.OperandString; label2.Location = new Point(12, y + 2); label2.Size = new Size(150, 0x10); MxTextBox box2 = new MxTextBox(); box2.Size = new Size(200, 20); box2.Location = new Point(0xa2, y); box2.FlatAppearance = true; box2.AlwaysShowFocusCues = true; y += 0x18; this._previewTextBoxes[parameter.Name] = box2; form.Controls.Add(label2); form.Controls.Add(box2); } Button button = new Button(); button.Text = "OK"; button.Click += new EventHandler(this.OnOkButtonClick); button.FlatStyle = FlatStyle.System; button.Location = new Point(0xd0, y); form.Controls.Add(button); Button button2 = new Button(); button2.Text = "Cancel"; button2.Click += new EventHandler(this.OnCancelButtonClick); button2.FlatStyle = FlatStyle.System; button2.Location = new Point(0x120, y); form.Controls.Add(button2); form.AcceptButton = button; form.CancelButton = button2; if (form.ShowDialog() == DialogResult.OK) { flag = true; foreach (QueryParameter parameter2 in this.Parameters) { object text = ((MxTextBox) this._previewTextBoxes[parameter2.Name]).Text; IDataParameter parameter3 = ((IDataProviderDatabase) this.Database).CreateParameter(parameter2.Name, parameter2.Type); parameter3.Value = text; selectCommand.Parameters.Add(parameter3); } } } else { flag = true; } if (flag) { connection.Open(); DbDataAdapter adapter = ((IDataProviderDatabase) this.Database).CreateAdapter(selectCommand); DataSet dataSet = new DataSet(); bool flag2 = false; if (adapter.Fill(dataSet) > 0) { this._previewGrid.DataSource = dataSet.Tables[0]; if (dataSet.Tables[0].Rows.Count > 0) { flag2 = true; } } if (!flag2) { MessageBox.Show(base.WizardForm, "The query returned no matches.", "Query Builder", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } } return; } catch (FormatException) { MessageBox.Show(base.WizardForm, "One of your parameters was formatted incorrectly, please try again.", "Query Builder", MessageBoxButtons.OK, MessageBoxIcon.Hand); return; } catch (Exception exception) { MessageBox.Show(base.WizardForm, "There was a problem executing your query.\r\nPlease check your query and database and try again. Details:\r\n" + exception.Message, "Query Builder", MessageBoxButtons.OK, MessageBoxIcon.Hand); return; } finally { connection.Close(); } } MessageBox.Show(base.WizardForm, "Preview is not supported on this type of query", "Query Builder", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); }
private void InitializeComponent() { this._startupComboBox = new MxComboBox(); this._mruListLengthTextBox = new MxTextBox(); this._startupLabel = new Label(); this._mruListLengthLabel = new Label(); this._mruListLengthLabel2 = new Label(); base.SuspendLayout(); this._startupComboBox.AlwaysShowFocusCues = true; this._startupComboBox.DropDownStyle = ComboBoxStyle.DropDownList; this._startupComboBox.FlatAppearance = true; this._startupComboBox.Items.AddRange(new object[] { "Create a new file", "Open an existing file", "Show empty environment" }); this._startupComboBox.Location = new Point(0x4c, 8); this._startupComboBox.Name = "_startupComboBox"; this._startupComboBox.Size = new Size(0xd4, 0x15); this._startupComboBox.TabIndex = 1; this._startupComboBox.SelectedIndexChanged += new EventHandler(this.OnStartupComboBoxSelectedIndexChanged); this._mruListLengthTextBox.AlwaysShowFocusCues = true; this._mruListLengthTextBox.FlatAppearance = true; this._mruListLengthTextBox.Location = new Point(0x4c, 40); this._mruListLengthTextBox.Name = "_mruListLengthTextBox"; this._mruListLengthTextBox.Numeric = true; this._mruListLengthTextBox.Size = new Size(0x24, 20); this._mruListLengthTextBox.TabIndex = 3; this._mruListLengthTextBox.Text = ""; this._mruListLengthTextBox.TextChanged += new EventHandler(this.OnMruListLengthTextBoxTextChanged); this._startupLabel.Location = new Point(8, 12); this._startupLabel.Name = "_startupLabel"; this._startupLabel.Size = new Size(60, 0x10); this._startupLabel.TabIndex = 0; this._startupLabel.Text = "At &Startup:"; this._mruListLengthLabel.Location = new Point(8, 0x2c); this._mruListLengthLabel.Name = "_mruListLengthLabel"; this._mruListLengthLabel.Size = new Size(0x40, 0x10); this._mruListLengthLabel.TabIndex = 2; this._mruListLengthLabel.Text = "&Display"; this._mruListLengthLabel2.Location = new Point(120, 0x2c); this._mruListLengthLabel2.Name = "_mruListLengthLabel2"; this._mruListLengthLabel2.Size = new Size(0xa8, 0x10); this._mruListLengthLabel2.TabIndex = 4; this._mruListLengthLabel2.Text = "items in the Recent Files menu."; base.Controls.AddRange(new Control[] { this._mruListLengthLabel2, this._mruListLengthLabel, this._startupLabel, this._mruListLengthTextBox, this._startupComboBox }); base.Size = new Size(400, 0xe8); base.ResumeLayout(false); }
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._imagePictureBox = new PictureBox(); this._nameLabel = new MxLabel(); this._authorLabel = new MxLabel(); this._versionLabel = new MxLabel(); this._detailTabControl = new Microsoft.Matrix.UIComponents.TabControl(); this._summaryTabPage = new Microsoft.Matrix.UIComponents.TabPage(); this._descriptionUrlLinkLabel = new LinkLabel(); this._ratingLabel = new MxLabel(); this._downloadCountLabel = new MxLabel(); this._dateReleasedLabel = new MxLabel(); this._sizeLabel = new MxLabel(); this._descriptionTextBox = new MxTextBox(); this._averageRatingLabelLabel = new MxLabel(); this._sizeLabelLabel = new MxLabel(); this._downloadCountLabelLabel = new MxLabel(); this._dateLabelLabel = new MxLabel(); this._fullDescriptionUrlLabelLabel = new MxLabel(); this._descriptionLabelLabel = new MxLabel(); this._detailsTabPage = new Microsoft.Matrix.UIComponents.TabPage(); this._packageContentsTextBox = new MxTextBox(); this._packageContentsLabel = new MxLabel(); this._communityTabPage = new Microsoft.Matrix.UIComponents.TabPage(); this._discussionUrlLinkLabel = new LinkLabel(); this._discussionUrlLabel = new MxLabel(); this._reviewsLabel = new MxLabel(); this._reviewTextBox = new MxTextBox(); this._downloadButton = new MxButton(); this._cancelButton = new MxButton(); this._previewTabPage = new Microsoft.Matrix.UIComponents.TabPage(); this._previewPictureBox = new PictureBox(); this._detailTabControl.SuspendLayout(); this._summaryTabPage.SuspendLayout(); this._detailsTabPage.SuspendLayout(); this._communityTabPage.SuspendLayout(); this._previewTabPage.SuspendLayout(); base.SuspendLayout(); this._imagePictureBox.Location = new Point(8, 8); this._imagePictureBox.Name = "_imagePictureBox"; this._imagePictureBox.Size = new Size(0x20, 0x20); this._imagePictureBox.TabIndex = 0; this._imagePictureBox.TabStop = false; this._nameLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this._nameLabel.Location = new Point(0x38, 8); this._nameLabel.Name = "_nameLabel"; this._nameLabel.Size = new Size(0x130, 0x10); this._nameLabel.TabIndex = 0; this._authorLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this._authorLabel.Location = new Point(0x38, 40); this._authorLabel.Name = "_authorLabel"; this._authorLabel.Size = new Size(0x130, 0x10); this._authorLabel.TabIndex = 0; this._versionLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top; this._versionLabel.Location = new Point(0x38, 0x18); this._versionLabel.Name = "_versionLabel"; this._versionLabel.Size = new Size(0x130, 0x10); this._versionLabel.TabIndex = 0; this._detailTabControl.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this._detailTabControl.Controls.AddRange(new Control[] { this._summaryTabPage, this._detailsTabPage, this._previewTabPage, this._communityTabPage }); this._detailTabControl.Location = new Point(4, 0x40); this._detailTabControl.Name = "_detailTabControl"; this._detailTabControl.SelectedIndex = 0; this._detailTabControl.Size = new Size(0x170, 0x144); this._detailTabControl.TabIndex = 1; this._detailTabControl.Mode = TabControlMode.TextOnly; this._summaryTabPage.Controls.AddRange(new Control[] { this._descriptionUrlLinkLabel, this._ratingLabel, this._downloadCountLabel, this._dateReleasedLabel, this._sizeLabel, this._descriptionTextBox, this._averageRatingLabelLabel, this._sizeLabelLabel, this._downloadCountLabelLabel, this._dateLabelLabel, this._fullDescriptionUrlLabelLabel, this._descriptionLabelLabel }); this._summaryTabPage.Dock = DockStyle.Fill; this._summaryTabPage.Location = new Point(4, 0x16); this._summaryTabPage.Name = "_summaryTabPage"; this._summaryTabPage.Size = new Size(360, 0x12a); this._summaryTabPage.TabIndex = 0; this._summaryTabPage.TabStop = true; this._summaryTabPage.Text = "Summary"; this._descriptionUrlLinkLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this._descriptionUrlLinkLabel.Location = new Point(8, 0xf8); this._descriptionUrlLinkLabel.Name = "_descriptionUrlLinkLabel"; this._descriptionUrlLinkLabel.Size = new Size(0x158, 0x2c); this._descriptionUrlLinkLabel.TabIndex = 2; this._descriptionUrlLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(this.UrlLinkLabel_LinkClicked); this._ratingLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this._ratingLabel.Location = new Point(100, 0xd0); this._ratingLabel.Name = "_ratingLabel"; this._ratingLabel.Size = new Size(0xfc, 0x10); this._ratingLabel.TabIndex = 0; this._downloadCountLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this._downloadCountLabel.Location = new Point(100, 0xbc); this._downloadCountLabel.Name = "_downloadCountLabel"; this._downloadCountLabel.Size = new Size(0xfc, 0x10); this._downloadCountLabel.TabIndex = 0; this._dateReleasedLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this._dateReleasedLabel.Location = new Point(100, 0xa8); this._dateReleasedLabel.Name = "_dateReleasedLabel"; this._dateReleasedLabel.Size = new Size(0xfc, 0x10); this._dateReleasedLabel.TabIndex = 0; this._sizeLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this._sizeLabel.Location = new Point(100, 0x94); this._sizeLabel.Name = "_sizeLabel"; this._sizeLabel.Size = new Size(0xfc, 0x10); this._sizeLabel.TabIndex = 0; this._descriptionTextBox.AlwaysShowFocusCues = true; this._descriptionTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this._descriptionTextBox.BorderStyle = BorderStyle.None; this._descriptionTextBox.FlatAppearance = true; this._descriptionTextBox.Location = new Point(8, 0x20); this._descriptionTextBox.Multiline = true; this._descriptionTextBox.Name = "_descriptionTextBox"; this._descriptionTextBox.ReadOnly = true; this._descriptionTextBox.ScrollBars = ScrollBars.Vertical; this._descriptionTextBox.Size = new Size(0x158, 0x68); this._descriptionTextBox.TabIndex = 1; this._descriptionTextBox.Text = ""; this._descriptionTextBox.WordWrap = true; this._averageRatingLabelLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._averageRatingLabelLabel.Location = new Point(8, 0xd0); this._averageRatingLabelLabel.Name = "_averageRatingLabelLabel"; this._averageRatingLabelLabel.Size = new Size(0x58, 0x10); this._averageRatingLabelLabel.TabIndex = 0; this._averageRatingLabelLabel.Text = "Rating:"; this._sizeLabelLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._sizeLabelLabel.Location = new Point(8, 0x94); this._sizeLabelLabel.Name = "_sizeLabelLabel"; this._sizeLabelLabel.Size = new Size(0x58, 0x10); this._sizeLabelLabel.TabIndex = 0; this._sizeLabelLabel.Text = "Size:"; this._downloadCountLabelLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._downloadCountLabelLabel.Location = new Point(8, 0xbc); this._downloadCountLabelLabel.Name = "_downloadCountLabelLabel"; this._downloadCountLabelLabel.Size = new Size(0x58, 0x10); this._downloadCountLabelLabel.TabIndex = 0; this._downloadCountLabelLabel.Text = "Downloads:"; this._dateLabelLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._dateLabelLabel.Location = new Point(8, 0xa8); this._dateLabelLabel.Name = "_dateLabelLabel"; this._dateLabelLabel.Size = new Size(0x58, 0x10); this._dateLabelLabel.TabIndex = 0; this._dateLabelLabel.Text = "Date Submitted:"; this._fullDescriptionUrlLabelLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._fullDescriptionUrlLabelLabel.Location = new Point(8, 0xe4); this._fullDescriptionUrlLabelLabel.Name = "_fullDescriptionUrlLabelLabel"; this._fullDescriptionUrlLabelLabel.Size = new Size(40, 0x10); this._fullDescriptionUrlLabelLabel.TabIndex = 0; this._fullDescriptionUrlLabelLabel.Text = "URL:"; this._descriptionLabelLabel.Location = new Point(8, 12); this._descriptionLabelLabel.Name = "_descriptionLabelLabel"; this._descriptionLabelLabel.Size = new Size(0x44, 0x10); this._descriptionLabelLabel.TabIndex = 0; this._descriptionLabelLabel.Text = "Description:"; this._detailsTabPage.Controls.AddRange(new Control[] { this._packageContentsTextBox, this._packageContentsLabel }); this._detailsTabPage.Dock = DockStyle.Fill; this._detailsTabPage.Location = new Point(4, 0x16); this._detailsTabPage.Name = "_detailsTabPage"; this._detailsTabPage.Size = new Size(360, 0x12a); this._detailsTabPage.TabIndex = 1; this._detailsTabPage.TabStop = true; this._detailsTabPage.Text = "Details"; this._packageContentsTextBox.AlwaysShowFocusCues = true; this._packageContentsTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this._packageContentsTextBox.BorderStyle = BorderStyle.None; this._packageContentsTextBox.FlatAppearance = true; this._packageContentsTextBox.Location = new Point(8, 0x20); this._packageContentsTextBox.Multiline = true; this._packageContentsTextBox.Name = "_packageContentsTextBox"; this._packageContentsTextBox.ReadOnly = true; this._packageContentsTextBox.ScrollBars = ScrollBars.Vertical; this._packageContentsTextBox.Size = new Size(0x158, 0xf8); this._packageContentsTextBox.TabIndex = 1; this._packageContentsTextBox.Text = ""; this._packageContentsLabel.Location = new Point(8, 12); this._packageContentsLabel.Name = "_packageContentsLabel"; this._packageContentsLabel.Size = new Size(0x68, 0x10); this._packageContentsLabel.TabIndex = 0; this._packageContentsLabel.Text = "Package Contents:"; this._communityTabPage.Controls.AddRange(new Control[] { this._discussionUrlLinkLabel, this._discussionUrlLabel, this._reviewsLabel, this._reviewTextBox }); this._communityTabPage.Dock = DockStyle.Fill; this._communityTabPage.Location = new Point(4, 0x16); this._communityTabPage.Name = "_communityTabPage"; this._communityTabPage.Size = new Size(360, 0x12a); this._communityTabPage.TabIndex = 1; this._communityTabPage.TabStop = true; this._communityTabPage.Text = "Community"; this._discussionUrlLinkLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this._discussionUrlLinkLabel.Location = new Point(8, 0xf8); this._discussionUrlLinkLabel.Name = "_discussionUrlLinkLabel"; this._discussionUrlLinkLabel.Size = new Size(0x158, 40); this._discussionUrlLinkLabel.TabIndex = 2; this._discussionUrlLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(this.UrlLinkLabel_LinkClicked); this._discussionUrlLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._discussionUrlLabel.Location = new Point(8, 0xe4); this._discussionUrlLabel.Name = "_discussionUrlLabel"; this._discussionUrlLabel.Size = new Size(0x60, 0x10); this._discussionUrlLabel.TabIndex = 0; this._discussionUrlLabel.Text = "Dicussion Forum:"; this._reviewsLabel.Location = new Point(8, 12); this._reviewsLabel.Name = "_reviewsLabel"; this._reviewsLabel.Size = new Size(80, 0x10); this._reviewsLabel.TabIndex = 0; this._reviewsLabel.Text = "User Reviews:"; this._reviewTextBox.AlwaysShowFocusCues = true; this._reviewTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this._reviewTextBox.BorderStyle = BorderStyle.None; this._reviewTextBox.FlatAppearance = true; this._reviewTextBox.Location = new Point(8, 0x20); this._reviewTextBox.Multiline = true; this._reviewTextBox.Name = "_reviewTextBox"; this._reviewTextBox.ReadOnly = true; this._reviewTextBox.ScrollBars = ScrollBars.Vertical; this._reviewTextBox.Size = new Size(0x158, 0xb8); this._reviewTextBox.TabIndex = 1; this._reviewTextBox.Text = ""; this._downloadButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._downloadButton.Location = new Point(0xd0, 0x18c); this._downloadButton.Name = "_downloadButton"; this._downloadButton.TabIndex = 2; this._downloadButton.Text = "Install"; this._downloadButton.Click += new EventHandler(this._downloadButton_Click); this._cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0x124, 0x18c); this._cancelButton.Name = "_cancelButton"; this._cancelButton.TabIndex = 3; this._cancelButton.Text = "Close"; this._previewTabPage.Controls.AddRange(new Control[] { this._previewPictureBox }); this._previewTabPage.Location = new Point(4, 0x16); this._previewTabPage.Name = "_previewTabPage"; this._previewTabPage.Size = new Size(360, 0x12a); this._previewTabPage.TabIndex = 2; this._previewTabPage.Text = "Preview"; this._previewPictureBox.Dock = DockStyle.Fill; this._previewPictureBox.Name = "_previewPictureBox"; this._previewPictureBox.Size = new Size(360, 0x12a); this._previewPictureBox.TabIndex = 0; this._previewPictureBox.TabStop = false; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(0x178, 430); base.Controls.AddRange(new Control[] { this._cancelButton, this._downloadButton, this._detailTabControl, this._versionLabel, this._authorLabel, this._nameLabel, this._imagePictureBox }); base.Icon = new Icon(typeof(ComponentDetailsDialog), "ComponentGallery.ico"); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "ComponentDetailsDialog"; base.SizeGripStyle = SizeGripStyle.Hide; base.ShowInTaskbar = false; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Component Details"; this._detailTabControl.ResumeLayout(false); this._summaryTabPage.ResumeLayout(false); this._detailsTabPage.ResumeLayout(false); this._communityTabPage.ResumeLayout(false); this._previewTabPage.ResumeLayout(false); base.ResumeLayout(false); }
private void InitializeComponent() { this._createDbLink = new LinkLabel(); this._filenameLabel = new MxLabel(); this._filenameEdit = new MxTextBox(); this._connectButton = new MxButton(); this._cancelButton = new MxButton(); this._chooseFileButton = new MxButton(); this._exampleLabel = new MxLabel(); base.SuspendLayout(); this._createDbLink.Location = new Point(0x18, 260); this._createDbLink.Name = "_createDbLink"; this._createDbLink.Size = new Size(0x90, 13); this._createDbLink.TabIndex = 10; this._createDbLink.TabStop = true; this._createDbLink.Text = "Create a new database"; this._createDbLink.LinkClicked += new LinkLabelLinkClickedEventHandler(this.OnCreateDbLinkClicked); this._filenameLabel.Location = new Point(0x18, 0x4c); this._filenameLabel.Name = "_filenameLabel"; this._filenameLabel.Size = new Size(60, 13); this._filenameLabel.TabIndex = 0; this._filenameLabel.Text = "Data &File:"; this._filenameLabel.TextAlign = ContentAlignment.MiddleLeft; this._filenameEdit.AlwaysShowFocusCues = true; this._filenameEdit.FlatAppearance = true; this._filenameEdit.Location = new Point(0x5d, 0x48); this._filenameEdit.Name = "_filenameEdit"; this._filenameEdit.Size = new Size(220, 20); this._filenameEdit.TabIndex = 1; this._filenameEdit.Text = ""; this._filenameEdit.TextChanged += new EventHandler(this.OnLoginTextChanged); this._connectButton.Location = new Point(0xc0, 0xfc); this._connectButton.Name = "_connectButton"; this._connectButton.Size = new Size(0x4d, 0x17); this._connectButton.TabIndex = 11; this._connectButton.Text = "OK"; this._connectButton.Click += new EventHandler(this.OnConnectButtonClicked); this._cancelButton.DialogResult = DialogResult.Cancel; this._cancelButton.Location = new Point(0x114, 0xfc); this._cancelButton.Name = "_cancelButton"; this._cancelButton.Size = new Size(0x4d, 0x17); this._cancelButton.TabIndex = 12; this._cancelButton.Text = "Cancel"; this._cancelButton.Click += new EventHandler(this.OnCancelButtonClicked); this._chooseFileButton.Location = new Point(0x13b, 70); this._chooseFileButton.Name = "_chooseFileButton"; this._chooseFileButton.Size = new Size(0x18, 0x17); this._chooseFileButton.TabIndex = 2; this._chooseFileButton.Text = "..."; this._chooseFileButton.Click += new EventHandler(this.OnChooseFileButtonClicked); this._exampleLabel.Location = new Point(0x60, 0x60); this._exampleLabel.Name = "_exampleLabel"; this._exampleLabel.Size = new Size(0xd8, 13); this._exampleLabel.TabIndex = 0; this._exampleLabel.Text = @"Example: c:\example.mdb"; this._exampleLabel.TextAlign = ContentAlignment.MiddleLeft; base.AcceptButton = this._connectButton; this.AutoScaleBaseSize = new Size(5, 13); base.CancelButton = this._cancelButton; base.ClientSize = new Size(0x17a, 0x120); base.Controls.AddRange(new Control[] { this._createDbLink, this._filenameLabel, this._filenameEdit, this._chooseFileButton, this._cancelButton, this._connectButton, this._exampleLabel }); base.FormBorderStyle = FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "AccessDatabaseLoginForm"; base.ShowInTaskbar = false; base.SizeGripStyle = SizeGripStyle.Hide; base.StartPosition = FormStartPosition.CenterParent; base.TaskBorderStyle = BorderStyle.FixedSingle; base.TaskCaption = "Connect to a Microsoft Access Database"; base.TaskDescription = "Enter the filename of the database."; this.Text = "Connect to Database"; base.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this._appRootTextBox = new Microsoft.Matrix.UIComponents.MxTextBox(); this._portTextBox = new Microsoft.Matrix.UIComponents.MxTextBox(); this._portLabel = new Microsoft.Matrix.UIComponents.MxLabel(); this._restartButton = new Microsoft.Matrix.UIComponents.MxButton(); this._hyperlinkLabel = new Microsoft.Matrix.UIComponents.MxLabel(); this._hyperlinkLinkLabel = new System.Windows.Forms.LinkLabel(); this._physicalPathLabel = new Microsoft.Matrix.UIComponents.MxLabel(); this._appRootLabel = new Microsoft.Matrix.UIComponents.MxLabel(); this._stopButton = new Microsoft.Matrix.UIComponents.MxButton(); this._physicalPathTextBox = new Microsoft.Matrix.UIComponents.MxTextBox(); this._trayIcon = new Microsoft.Matrix.UIComponents.TrayIcon(this.components); this.SuspendLayout(); // // _appRootTextBox // this._appRootTextBox.AlwaysShowFocusCues = true; this._appRootTextBox.FlatAppearance = true; this._appRootTextBox.Location = new System.Drawing.Point(116, 92); this._appRootTextBox.Name = "_appRootTextBox"; this._appRootTextBox.ReadOnly = true; this._appRootTextBox.Size = new System.Drawing.Size(296, 20); this._appRootTextBox.TabIndex = 3; this._appRootTextBox.TabStop = false; // // _portTextBox // this._portTextBox.AlwaysShowFocusCues = true; this._portTextBox.FlatAppearance = true; this._portTextBox.Location = new System.Drawing.Point(116, 116); this._portTextBox.Name = "_portTextBox"; this._portTextBox.ReadOnly = true; this._portTextBox.Size = new System.Drawing.Size(60, 20); this._portTextBox.TabIndex = 5; this._portTextBox.TabStop = false; // // _portLabel // this._portLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; this._portLabel.Location = new System.Drawing.Point(12, 118); this._portLabel.Name = "_portLabel"; this._portLabel.Size = new System.Drawing.Size(100, 16); this._portLabel.TabIndex = 4; this._portLabel.Text = "Port:"; // // _restartButton // this._restartButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this._restartButton.Location = new System.Drawing.Point(252, 168); this._restartButton.Name = "_restartButton"; this._restartButton.Size = new System.Drawing.Size(75, 23); this._restartButton.TabIndex = 8; this._restartButton.Text = "Restart"; this._restartButton.Click += new System.EventHandler(this.OnClickRestartButton); // // _hyperlinkLabel // this._hyperlinkLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; this._hyperlinkLabel.Location = new System.Drawing.Point(12, 144); this._hyperlinkLabel.Name = "_hyperlinkLabel"; this._hyperlinkLabel.Size = new System.Drawing.Size(100, 16); this._hyperlinkLabel.TabIndex = 6; this._hyperlinkLabel.Text = "Root &URL:"; // // _hyperlinkLinkLabel // this._hyperlinkLinkLabel.Location = new System.Drawing.Point(116, 144); this._hyperlinkLinkLabel.Name = "_hyperlinkLinkLabel"; this._hyperlinkLinkLabel.Size = new System.Drawing.Size(296, 16); this._hyperlinkLinkLabel.TabIndex = 7; this._hyperlinkLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.OnLinkClickedHyperlinkLinkLabel); // // _physicalPathLabel // this._physicalPathLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; this._physicalPathLabel.Location = new System.Drawing.Point(12, 70); this._physicalPathLabel.Name = "_physicalPathLabel"; this._physicalPathLabel.Size = new System.Drawing.Size(100, 16); this._physicalPathLabel.TabIndex = 0; this._physicalPathLabel.Text = "Physical Path:"; // // _appRootLabel // this._appRootLabel.FlatStyle = System.Windows.Forms.FlatStyle.System; this._appRootLabel.Location = new System.Drawing.Point(12, 94); this._appRootLabel.Name = "_appRootLabel"; this._appRootLabel.Size = new System.Drawing.Size(100, 16); this._appRootLabel.TabIndex = 2; this._appRootLabel.Text = "Virtual Path:"; // // _stopButton // this._stopButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this._stopButton.Location = new System.Drawing.Point(336, 168); this._stopButton.Name = "_stopButton"; this._stopButton.Size = new System.Drawing.Size(75, 23); this._stopButton.TabIndex = 9; this._stopButton.Text = "Stop"; this._stopButton.Click += new System.EventHandler(this.OnClickStopButton); // // _physicalPathTextBox // this._physicalPathTextBox.AlwaysShowFocusCues = true; this._physicalPathTextBox.FlatAppearance = true; this._physicalPathTextBox.Location = new System.Drawing.Point(116, 68); this._physicalPathTextBox.Name = "_physicalPathTextBox"; this._physicalPathTextBox.ReadOnly = true; this._physicalPathTextBox.Size = new System.Drawing.Size(296, 20); this._physicalPathTextBox.TabIndex = 1; this._physicalPathTextBox.TabStop = false; // // _trayIcon // this._trayIcon.Owner = this; this._trayIcon.DoubleClick += new System.EventHandler(this.OnDoubleClickTrayIcon); this._trayIcon.ShowContextMenu += new Microsoft.Matrix.UIComponents.ShowContextMenuEventHandler(this.OnTrayIconShowContextMenu); // // WebServerForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(422, 199); this.Controls.Add(this._restartButton); this.Controls.Add(this._stopButton); this.Controls.Add(this._hyperlinkLinkLabel); this.Controls.Add(this._portTextBox); this.Controls.Add(this._appRootTextBox); this.Controls.Add(this._physicalPathTextBox); this.Controls.Add(this._hyperlinkLabel); this.Controls.Add(this._portLabel); this.Controls.Add(this._appRootLabel); this.Controls.Add(this._physicalPathLabel); this.Font = new System.Drawing.Font("Tahoma", 8F); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "WebServerForm"; this.ShowInTaskbar = false; this.TaskBorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.TaskCaption = "Microsoft ASP.NET Web Matrix Server"; this.TaskDescription = "Run ASP.NET applications locally."; this.Text = "Microsoft ASP.NET Web Matrix Server"; this.WindowState = System.Windows.Forms.FormWindowState.Minimized; this.ResumeLayout(false); this.PerformLayout(); }