예제 #1
0
 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";
 }
예제 #2
0
 private void InitializeComponent()
 {
     this._galleryLabel = new MxLabel();
     this._lookForLabel = new MxLabel();
     this._searchByLabel = new MxLabel();
     this._searchGroupLabel = new GroupLabel();
     this._resultsListView = new MxListView();
     this._searchButton = new MxButton();
     this._connectButton = new MxButton();
     this._galleryComboBox = new MxComboBox();
     this._keywordComboBox = new MxComboBox();
     this._gradientBand = new GradientBand();
     this._downloadButton = new MxButton();
     this._cancelButton = new MxButton();
     this._containerPanel = new Panel();
     this._resultsPanel = new Panel();
     this._resultsListViewPanel = new Panel();
     this._resultsSplitter = new Splitter();
     this._resultsSummaryPanel = new Panel();
     this._resultsSummaryLabel = new MxLabel();
     this._panelSplitter = new Splitter();
     this._categoryPanel = new Panel();
     this._categoryListView = new MxListView();
     this.Categories = new ColumnHeader();
     this._categoryRadioButton = new MxRadioButton();
     this._keywordRadioButton = new MxRadioButton();
     this._detailsButton = new MxButton();
     this._containerPanel.SuspendLayout();
     this._resultsPanel.SuspendLayout();
     this._resultsListViewPanel.SuspendLayout();
     this._resultsSummaryPanel.SuspendLayout();
     this._categoryPanel.SuspendLayout();
     base.SuspendLayout();
     this._galleryLabel.Location = new Point(0x10, 80);
     this._galleryLabel.Name = "_galleryLabel";
     this._galleryLabel.Size = new Size(0x30, 0x10);
     this._galleryLabel.TabIndex = 0;
     this._galleryLabel.Text = "&Gallery:";
     this._lookForLabel.Location = new Point(0x10, 160);
     this._lookForLabel.Name = "_lookForLabel";
     this._lookForLabel.Size = new Size(0x40, 0x10);
     this._lookForLabel.TabIndex = 7;
     this._lookForLabel.Text = "&Look For:";
     this._lookForLabel.Visible = false;
     this._searchByLabel.Location = new Point(0x10, 0x84);
     this._searchByLabel.Name = "_searchByLabel";
     this._searchByLabel.Size = new Size(0x48, 0x10);
     this._searchByLabel.TabIndex = 4;
     this._searchByLabel.Text = "Search By:";
     this._searchGroupLabel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._searchGroupLabel.Location = new Point(4, 0x6c);
     this._searchGroupLabel.Name = "_searchGroupLabel";
     this._searchGroupLabel.Size = new Size(0x204, 0x10);
     this._searchGroupLabel.TabIndex = 3;
     this._searchGroupLabel.Text = "Search";
     this._resultsListView.BorderStyle = BorderStyle.None;
     this._resultsListView.Dock = DockStyle.Fill;
     this._resultsListView.FlatScrollBars = false;
     this._resultsListView.FullRowSelect = true;
     this._resultsListView.HeaderStyle = ColumnHeaderStyle.Nonclickable;
     this._resultsListView.HideSelection = false;
     this._resultsListView.Location = new Point(1, 1);
     this._resultsListView.MultiSelect = false;
     this._resultsListView.Name = "_resultsListView";
     this._resultsListView.ShowToolTips = false;
     this._resultsListView.Size = new Size(0x185, 0x80);
     this._resultsListView.TabIndex = 1;
     this._resultsListView.WatermarkText = "No components found.\r\nSelect a category to begin browsing.";
     this._resultsListView.SelectedIndexChanged += new EventHandler(this.OnResultsListViewSelectedIndexChanged);
     this._searchButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this._searchButton.Location = new Point(440, 0x9d);
     this._searchButton.Name = "_searchButton";
     this._searchButton.TabIndex = 6;
     this._searchButton.Text = "&Search";
     this._searchButton.Visible = false;
     this._connectButton.Anchor = AnchorStyles.Right | AnchorStyles.Top;
     this._connectButton.Location = new Point(440, 0x4d);
     this._connectButton.Name = "_connectButton";
     this._connectButton.TabIndex = 2;
     this._connectButton.Text = "&Connect";
     this._galleryComboBox.AlwaysShowFocusCues = true;
     this._galleryComboBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._galleryComboBox.FlatAppearance = true;
     this._galleryComboBox.InitialText = null;
     this._galleryComboBox.Location = new Point(0x60, 0x4e);
     this._galleryComboBox.Name = "_galleryComboBox";
     this._galleryComboBox.Size = new Size(0x150, 0x15);
     this._galleryComboBox.TabIndex = 1;
     this._galleryComboBox.KeyDown += new KeyEventHandler(this.OnGalleryComboBoxKeyDown);
     this._keywordComboBox.AlwaysShowFocusCues = true;
     this._keywordComboBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._keywordComboBox.FlatAppearance = true;
     this._keywordComboBox.InitialText = null;
     this._keywordComboBox.Location = new Point(0x60, 0x9e);
     this._keywordComboBox.Name = "_keywordComboBox";
     this._keywordComboBox.Size = new Size(0x150, 0x15);
     this._keywordComboBox.TabIndex = 5;
     this._keywordComboBox.KeyDown += new KeyEventHandler(this.OnKeywordComboBoxKeyDown);
     this._gradientBand.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
     this._gradientBand.EndColor = Color.FromArgb(0x80, 0x80, 0xff);
     this._gradientBand.GradientSpeed = 1;
     this._gradientBand.Location = new Point(0, 0x38);
     this._gradientBand.Name = "_gradientBand";
     this._gradientBand.ScrollSpeed = 5;
     this._gradientBand.Size = new Size(0x20c, 6);
     this._gradientBand.StartColor = Color.White;
     this._gradientBand.TabIndex = 0;
     this._gradientBand.Text = "gradientBand1";
     this._downloadButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this._downloadButton.Location = new Point(0x11c, 0x160);
     this._downloadButton.Name = "_downloadButton";
     this._downloadButton.TabIndex = 9;
     this._downloadButton.Text = "&Install";
     this._downloadButton.Click += new EventHandler(this.OnDownloadButtonClick);
     this._cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this._cancelButton.Location = new Point(0x1bc, 0x160);
     this._cancelButton.Name = "_cancelButton";
     this._cancelButton.TabIndex = 11;
     this._cancelButton.Text = "Cl&ose";
     this._cancelButton.Click += new EventHandler(this.OnCancelButtonClick);
     this._containerPanel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this._containerPanel.BackColor = SystemColors.ControlDark;
     this._containerPanel.Controls.AddRange(new Control[] { this._resultsPanel, this._panelSplitter, this._categoryPanel });
     this._containerPanel.Location = new Point(4, 0x9c);
     this._containerPanel.Name = "_containerPanel";
     this._containerPanel.Size = new Size(0x204, 0xb8);
     this._containerPanel.TabIndex = 7;
     this._resultsPanel.Controls.AddRange(new Control[] { this._resultsListViewPanel, this._resultsSplitter, this._resultsSummaryPanel });
     this._resultsPanel.Dock = DockStyle.Fill;
     this._resultsPanel.Location = new Point(0x7d, 0);
     this._resultsPanel.Name = "_resultsPanel";
     this._resultsPanel.Size = new Size(0x187, 0xb8);
     this._resultsPanel.TabIndex = 5;
     this._resultsListViewPanel.BackColor = SystemColors.ControlDark;
     this._resultsListViewPanel.Controls.AddRange(new Control[] { this._resultsListView });
     this._resultsListViewPanel.Dock = DockStyle.Fill;
     this._resultsListViewPanel.DockPadding.All = 1;
     this._resultsListViewPanel.Name = "_resultsListViewPanel";
     this._resultsListViewPanel.Size = new Size(0x187, 130);
     this._resultsListViewPanel.TabIndex = 0;
     this._resultsSplitter.BackColor = SystemColors.Control;
     this._resultsSplitter.Dock = DockStyle.Bottom;
     this._resultsSplitter.Location = new Point(0, 130);
     this._resultsSplitter.Name = "_resultsSplitter";
     this._resultsSplitter.Size = new Size(0x187, 4);
     this._resultsSplitter.TabIndex = 2;
     this._resultsSplitter.TabStop = false;
     this._resultsSummaryPanel.BackColor = SystemColors.ControlDark;
     this._resultsSummaryPanel.Controls.AddRange(new Control[] { this._resultsSummaryLabel });
     this._resultsSummaryPanel.Dock = DockStyle.Bottom;
     this._resultsSummaryPanel.DockPadding.All = 1;
     this._resultsSummaryPanel.Location = new Point(0, 0x86);
     this._resultsSummaryPanel.Name = "_resultsSummaryPanel";
     this._resultsSummaryPanel.Size = new Size(0x187, 50);
     this._resultsSummaryPanel.TabIndex = 3;
     this._resultsSummaryLabel.BackColor = SystemColors.Control;
     this._resultsSummaryLabel.Dock = DockStyle.Fill;
     this._resultsSummaryLabel.Location = new Point(1, 1);
     this._resultsSummaryLabel.Name = "_resultsSummaryLabel";
     this._resultsSummaryLabel.Size = new Size(0x185, 0x30);
     this._resultsSummaryLabel.TabIndex = 0;
     this._panelSplitter.BackColor = SystemColors.Control;
     this._panelSplitter.Location = new Point(0x79, 0);
     this._panelSplitter.Name = "_panelSplitter";
     this._panelSplitter.Size = new Size(4, 0xb8);
     this._panelSplitter.TabIndex = 3;
     this._panelSplitter.TabStop = false;
     this._panelSplitter.SplitterMoved += new SplitterEventHandler(this._panelSplitter_SplitterMoved);
     this._categoryPanel.BackColor = SystemColors.ControlDark;
     this._categoryPanel.Controls.AddRange(new Control[] { this._categoryListView });
     this._categoryPanel.Dock = DockStyle.Left;
     this._categoryPanel.DockPadding.All = 1;
     this._categoryPanel.Name = "_categoryPanel";
     this._categoryPanel.Size = new Size(0x79, 0xb8);
     this._categoryPanel.TabIndex = 4;
     this._categoryListView.BorderStyle = BorderStyle.None;
     this._categoryListView.Dock = DockStyle.Fill;
     this._categoryListView.FlatScrollBars = false;
     this._categoryListView.FullRowSelect = true;
     this._categoryListView.HeaderStyle = ColumnHeaderStyle.Nonclickable;
     this._categoryListView.HideSelection = false;
     this._categoryListView.Location = new Point(1, 1);
     this._categoryListView.MultiSelect = false;
     this._categoryListView.Name = "_categoryListView";
     this._categoryListView.ShowToolTips = false;
     this._categoryListView.Size = new Size(0x77, 0xb6);
     this._categoryListView.TabIndex = 1;
     this._categoryListView.WatermarkText = "";
     this._categoryListView.SelectedIndexChanged += new EventHandler(this.OnCategoryListViewSelectedIndexChanged);
     this._categoryRadioButton.Checked = true;
     this._categoryRadioButton.Location = new Point(100, 0x84);
     this._categoryRadioButton.Name = "_categoryRadioButton";
     this._categoryRadioButton.Size = new Size(0x44, 0x10);
     this._categoryRadioButton.TabIndex = 3;
     this._categoryRadioButton.TabStop = true;
     this._categoryRadioButton.Text = "C&ategory";
     this._categoryRadioButton.CheckedChanged += new EventHandler(this.OnCategoryRadioButtonCheckedChanged);
     this._keywordRadioButton.Location = new Point(0xb8, 0x84);
     this._keywordRadioButton.Name = "_keywordRadioButton";
     this._keywordRadioButton.Size = new Size(0x44, 0x10);
     this._keywordRadioButton.TabIndex = 4;
     this._keywordRadioButton.TabStop = true;
     this._keywordRadioButton.Text = "&Keyword";
     this._detailsButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     this._detailsButton.Location = new Point(0x16c, 0x160);
     this._detailsButton.Name = "_detailsButton";
     this._detailsButton.TabIndex = 10;
     this._detailsButton.Text = "&Details";
     this._detailsButton.Click += new EventHandler(this.OnDetailsButtonClick);
     this.AutoScaleBaseSize = new Size(5, 13);
     base.CancelButton = this._cancelButton;
     base.ClientSize = new Size(0x20c, 0x181);
     base.Controls.AddRange(new Control[] { this._detailsButton, this._keywordRadioButton, this._categoryRadioButton, this._cancelButton, this._downloadButton, this._gradientBand, this._galleryComboBox, this._connectButton, this._searchGroupLabel, this._searchByLabel, this._galleryLabel, this._containerPanel, this._searchButton, this._keywordComboBox, this._lookForLabel });
     base.Icon = new Icon(typeof(ComponentGalleryDialog), "ComponentGallery.ico");
     base.MaximizeBox = false;
     base.MinimizeBox = false;
     base.MinimumSize = new Size(0x214, 0x19c);
     base.Name = "ComponentGalleryDialog";
     base.ShowInTaskbar = false;
     base.StartPosition = FormStartPosition.CenterParent;
     base.TaskCaption = "Online Component Gallery";
     base.TaskDescription = "Search the online component gallery";
     base.TaskGlyph = new Bitmap(typeof(ComponentGalleryDialog), "ComponentGalleryGlyph.bmp");
     this.Text = "Component Gallery";
     this._containerPanel.ResumeLayout(false);
     this._resultsPanel.ResumeLayout(false);
     this._resultsListViewPanel.ResumeLayout(false);
     this._resultsSummaryPanel.ResumeLayout(false);
     this._categoryPanel.ResumeLayout(false);
     base.ResumeLayout(false);
 }
예제 #3
0
 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);
 }
예제 #4
0
 private void InitializeComponent()
 {
     this._fontLabel = new Label();
     this._fontFaceLabel = new Label();
     this._fontFaceComboBox = new FontComboBox();
     this._sizeLabel = new Label();
     this._fontSizeComboBox = new MxComboBox();
     this._fontComboBox = new MxComboBox();
     this._previewLabel = new GdiLabel();
     this._sampleLabel = new GroupLabel();
     this._previewPanel = new Panel();
     base.SuspendLayout();
     this._fontLabel.Location = new Point(8, 8);
     this._fontLabel.Name = "_fontLabel";
     this._fontLabel.Size = new Size(0x80, 0x10);
     this._fontLabel.TabIndex = 0;
     this._fontLabel.Text = "Show S&ettings For:";
     this._fontFaceLabel.Location = new Point(8, 0x38);
     this._fontFaceLabel.Name = "_fontFaceLabel";
     this._fontFaceLabel.Size = new Size(0x4c, 0x10);
     this._fontFaceLabel.TabIndex = 2;
     this._fontFaceLabel.Text = "&Font Face:";
     this._fontFaceComboBox.AlwaysShowFocusCues = true;
     this._fontFaceComboBox.DeferFontEnumeration = true;
     this._fontFaceComboBox.DrawMode = DrawMode.OwnerDrawFixed;
     this._fontFaceComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
     this._fontFaceComboBox.FlatAppearance = true;
     this._fontFaceComboBox.Location = new Point(8, 0x48);
     this._fontFaceComboBox.MaxDropDownItems = 10;
     this._fontFaceComboBox.Name = "_fontFaceComboBox";
     this._fontFaceComboBox.ShowFixedFontsOnly = true;
     this._fontFaceComboBox.ShowFontPreview = false;
     this._fontFaceComboBox.Size = new Size(0xe0, 20);
     this._fontFaceComboBox.TabIndex = 3;
     this._fontFaceComboBox.SelectedIndexChanged += new EventHandler(this.OnFontFaceSelectedIndexChanged);
     this._sizeLabel.Location = new Point(0xfc, 0x38);
     this._sizeLabel.Name = "_sizeLabel";
     this._sizeLabel.Size = new Size(0x24, 0x10);
     this._sizeLabel.TabIndex = 4;
     this._sizeLabel.Text = "&Size:";
     this._fontSizeComboBox.AlwaysShowFocusCues = true;
     this._fontSizeComboBox.FlatAppearance = true;
     this._fontSizeComboBox.Location = new Point(0xfc, 0x48);
     this._fontSizeComboBox.Name = "_fontSizeComboBox";
     this._fontSizeComboBox.Size = new Size(0x44, 0x15);
     this._fontSizeComboBox.TabIndex = 5;
     this._fontSizeComboBox.SelectedIndexChanged += new EventHandler(this.OnFontSizeComboBoxSelectedIndexChanged);
     this._fontSizeComboBox.TextChanged += new EventHandler(this.OnFontSizeComboBoxTextChanged);
     this._fontComboBox.AlwaysShowFocusCues = true;
     this._fontComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
     this._fontComboBox.FlatAppearance = true;
     this._fontComboBox.Location = new Point(8, 0x18);
     this._fontComboBox.Name = "_fontComboBox";
     this._fontComboBox.Size = new Size(0xe0, 0x15);
     this._fontComboBox.TabIndex = 1;
     this._fontComboBox.SelectedIndexChanged += new EventHandler(this.OnFontComboBoxSelectedIndexChanged);
     this._previewPanel.BackColor = SystemColors.ControlDark;
     this._previewPanel.DockPadding.All = 1;
     this._previewPanel.Location = new Point(8, 0x80);
     this._previewPanel.Size = new Size(0x1b4, 60);
     this._previewPanel.TabIndex = 7;
     this._previewLabel.BackColor = Color.White;
     this._previewLabel.Dock = DockStyle.Fill;
     this._previewLabel.Name = "_previewLabel";
     this._previewLabel.TabIndex = 0;
     this._previewLabel.Text = "Sample Text\n1234567890";
     this._previewLabel.TextAlign = ContentAlignment.MiddleCenter;
     this._sampleLabel.Location = new Point(8, 0x6c);
     this._sampleLabel.Name = "_sampleLabel";
     this._sampleLabel.Size = new Size(0x1b4, 0x10);
     this._sampleLabel.TabIndex = 6;
     this._sampleLabel.Text = "Sample";
     this._previewPanel.Controls.AddRange(new Control[] { this._previewLabel });
     base.Controls.AddRange(new Control[] { this._sampleLabel, this._previewPanel, this._fontComboBox, this._fontSizeComboBox, this._sizeLabel, this._fontFaceComboBox, this._fontFaceLabel, this._fontLabel });
     base.Name = "FontOptionsPage";
     base.Size = new Size(0x1c4, 0x10c);
     base.ResumeLayout(false);
 }