本文整理汇总了C#中System.Windows.Forms.TableLayoutPanel.PerformLayout方法的典型用法代码示例。如果您正苦于以下问题:C# TableLayoutPanel.PerformLayout方法的具体用法?C# TableLayoutPanel.PerformLayout怎么用?C# TableLayoutPanel.PerformLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.TableLayoutPanel
的用法示例。
在下文中一共展示了TableLayoutPanel.PerformLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(AutoRefreshOptionControl));
PropertyValue value2 = new PropertyValue();
this.lblSlowVolumeAutoRefresh = new Label();
this.cmbSlowVolumeAutoRefresh = new ComboBoxEx();
this.ValuesWatcher = new PropertyValuesWatcher();
TableLayoutPanel panel = new TableLayoutPanel();
panel.SuspendLayout();
((ISupportInitialize) this.ValuesWatcher).BeginInit();
base.SuspendLayout();
manager.ApplyResources(panel, "tlpBack");
panel.Controls.Add(this.lblSlowVolumeAutoRefresh, 0, 0);
panel.Controls.Add(this.cmbSlowVolumeAutoRefresh, 1, 0);
panel.Name = "tlpBack";
manager.ApplyResources(this.lblSlowVolumeAutoRefresh, "lblSlowVolumeAutoRefresh");
this.lblSlowVolumeAutoRefresh.Name = "lblSlowVolumeAutoRefresh";
manager.ApplyResources(this.cmbSlowVolumeAutoRefresh, "cmbSlowVolumeAutoRefresh");
this.cmbSlowVolumeAutoRefresh.DropDownStyle = ComboBoxStyle.DropDownList;
this.cmbSlowVolumeAutoRefresh.FormattingEnabled = true;
this.cmbSlowVolumeAutoRefresh.MinimumSize = new Size(110, 0);
this.cmbSlowVolumeAutoRefresh.Name = "cmbSlowVolumeAutoRefresh";
value2.DataObject = this.cmbSlowVolumeAutoRefresh;
value2.PropertyName = "SelectedIndex";
this.ValuesWatcher.Items.AddRange(new PropertyValue[] { value2 });
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(panel);
base.Name = "AutoRefreshOptionControl";
panel.ResumeLayout(false);
panel.PerformLayout();
((ISupportInitialize) this.ValuesWatcher).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
示例2: CreateControl
public override object CreateControl()
{
ParameterPanel panelFalse = new ParameterPanel();
ParameterPanel panelTrue = new ParameterPanel();
panelFalse.Init(SubParamsFalse, ParamNameWidth, (int) TotalWidth);
panelTrue.Init(SubParamsTrue, ParamNameWidth, (int) TotalWidth);
CheckBox cb = new CheckBox{Checked = Value};
cb.CheckedChanged += (sender, e) => ValueHasChanged();
TableLayoutPanel tlp = new TableLayoutPanel();
tlp.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100));
tlp.RowStyles.Add(new RowStyle(SizeType.Absolute, paramHeight));
tlp.RowStyles.Add(new RowStyle(SizeType.AutoSize, 100));
tlp.Controls.Add(cb, 0, 0);
panelFalse.Visible = !Value;
panelTrue.Visible = Value;
tlp.Controls.Add(panelFalse, 0, 1);
tlp.Controls.Add(panelTrue, 0, 1);
cb.CheckedChanged += (sender, e) =>{
panelFalse.Visible = !cb.Checked;
panelTrue.Visible = cb.Checked;
};
tlp.PerformLayout();
control = tlp;
return control;
}
示例3: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(HiddenItemsOptionControl));
PropertyValue value2 = new PropertyValue();
PropertyValue value3 = new PropertyValue();
PropertyValue value4 = new PropertyValue();
this.chkHideSysHidItems = new CheckBox();
this.chkUseHiddenItemsList = new CheckBox();
this.txtHiddenItemsList = new TextBox();
this.ValuesWatcher = new PropertyValuesWatcher();
TableLayoutPanel panel = new TableLayoutPanel();
((ISupportInitialize) this.ValuesWatcher).BeginInit();
panel.SuspendLayout();
base.SuspendLayout();
manager.ApplyResources(this.chkHideSysHidItems, "chkHideSysHidItems");
this.chkHideSysHidItems.Name = "chkHideSysHidItems";
this.chkHideSysHidItems.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkUseHiddenItemsList, "chkUseHiddenItemsList");
this.chkUseHiddenItemsList.Name = "chkUseHiddenItemsList";
this.chkUseHiddenItemsList.UseVisualStyleBackColor = true;
this.chkUseHiddenItemsList.CheckedChanged += new EventHandler(this.chkUseHiddenItemsList_CheckedChanged);
this.txtHiddenItemsList.AcceptsReturn = true;
manager.ApplyResources(this.txtHiddenItemsList, "txtHiddenItemsList");
this.txtHiddenItemsList.Name = "txtHiddenItemsList";
value2.DataObject = this.chkHideSysHidItems;
value2.PropertyName = "Checked";
value3.DataObject = this.chkUseHiddenItemsList;
value3.PropertyName = "Checked";
value4.DataObject = this.txtHiddenItemsList;
value4.PropertyName = "Text";
this.ValuesWatcher.Items.AddRange(new PropertyValue[] { value2, value3, value4 });
manager.ApplyResources(panel, "tlpBack");
panel.Controls.Add(this.chkHideSysHidItems, 0, 0);
panel.Controls.Add(this.chkUseHiddenItemsList, 0, 1);
panel.Name = "tlpBack";
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(this.txtHiddenItemsList);
base.Controls.Add(panel);
base.Name = "HiddenItemsOptionControl";
((ISupportInitialize) this.ValuesWatcher).EndInit();
panel.ResumeLayout(false);
panel.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
示例4: StartScreen
public StartScreen()
: base()
{
// Init
// Window
//this.ClientSize = new Size(300, 500);
this.Text = "Life Simulation";
this.FormBorderStyle = FormBorderStyle.FixedDialog;
this.StartPosition = FormStartPosition.CenterScreen;
// Layout
_layout = new TableLayoutPanel();
_layout.Dock = DockStyle.Fill;
this.Controls.Add(_layout);
// Suspend layouting
_layout.SuspendLayout();
this.SuspendLayout();
// Races list
_checkedListRaces = new CheckedListBox();
_checkedListRaces.Dock = DockStyle.Fill;
_layout.Controls.Add(createLabel("Races to Simulate:"));
_layout.Controls.Add(_checkedListRaces);
// Initial lifelets
_labelInitialLifelets = createLabel("Initial Lifelets:");
_layout.Controls.Add(_labelInitialLifelets);
_trackbarInitialLifelets = new TrackBar();
_trackbarInitialLifelets.Dock = DockStyle.Fill;
_trackbarInitialLifelets.Minimum = 1;
_trackbarInitialLifelets.Maximum = 1000;
_trackbarInitialLifelets.TickStyle = TickStyle.None;
_trackbarInitialLifelets.Scroll += new System.EventHandler(trackbarInitialLifelets_Scroll);
_layout.Controls.Add(_trackbarInitialLifelets);
// Simulate button
_buttonSimulate = new Button();
_buttonSimulate.Dock = DockStyle.Fill;
_buttonSimulate.Text = "Simulate";
_buttonSimulate.Click += new System.EventHandler(buttonSimulate_Click);
_layout.Controls.Add(_buttonSimulate);
// Load races
ArrayList races = World.GetAvailableRaces();
foreach(Type type in races) _checkedListRaces.Items.Add(type,true);
_trackbarInitialLifelets.Value = (races.Count == 0 ? 1 : races.Count * Config.WorldInitialLifeletsPerRace);
// Special cases
if(races.Count == 0) {
_buttonSimulate.Enabled = false;
}
// Resume layouting
_layout.ResumeLayout(false);
_layout.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
// Send of some events
trackbarInitialLifelets_Scroll(null,null);
}
示例5: InitializeComponent
//.........这里部分代码省略.........
flowBottomButtons.TabIndex = 4;
//
// revertButton
//
this.revertButton.Location = new System.Drawing.Point(553, 3);
this.revertButton.Name = "revertButton";
this.revertButton.Size = new System.Drawing.Size(75, 23);
this.revertButton.TabIndex = 0;
this.revertButton.Text = "Revert";
this.revertButton.UseVisualStyleBackColor = true;
this.revertButton.Click += new System.EventHandler(this.RevertButtonClick);
//
// saveButton
//
this.saveButton.Location = new System.Drawing.Point(472, 3);
this.saveButton.Name = "saveButton";
this.saveButton.Size = new System.Drawing.Size(75, 23);
this.saveButton.TabIndex = 1;
this.saveButton.Text = "Save";
this.saveButton.UseVisualStyleBackColor = true;
this.saveButton.Click += new System.EventHandler(this.SaveButtonClick);
//
// label1
//
this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(43, 118);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(80, 13);
this.label1.TabIndex = 10;
this.label1.Text = "Ignored folders:";
//
// ignoreList
//
this.ignoreList.Dock = System.Windows.Forms.DockStyle.Fill;
this.ignoreList.FormattingEnabled = true;
this.ignoreList.Location = new System.Drawing.Point(129, 92);
this.ignoreList.Name = "ignoreList";
this.ignoreList.Size = new System.Drawing.Size(388, 65);
this.ignoreList.TabIndex = 11;
//
// flowLayoutPanel1
//
this.flowLayoutPanel1.Controls.Add(this.addIgnore_btn);
this.flowLayoutPanel1.Controls.Add(this.removeIgnore_btn);
this.flowLayoutPanel1.Location = new System.Drawing.Point(523, 92);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
this.flowLayoutPanel1.Size = new System.Drawing.Size(99, 65);
this.flowLayoutPanel1.TabIndex = 12;
//
// addIgnore_btn
//
this.addIgnore_btn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.addIgnore_btn.Location = new System.Drawing.Point(3, 3);
this.addIgnore_btn.Name = "addIgnore_btn";
this.addIgnore_btn.Size = new System.Drawing.Size(96, 23);
this.addIgnore_btn.TabIndex = 0;
this.addIgnore_btn.Text = "Add";
this.addIgnore_btn.UseVisualStyleBackColor = true;
this.addIgnore_btn.Click += new System.EventHandler(this.addIgnore_btn_Click);
//
// removeIgnore_btn
//
this.removeIgnore_btn.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.removeIgnore_btn.Location = new System.Drawing.Point(3, 32);
this.removeIgnore_btn.Name = "removeIgnore_btn";
this.removeIgnore_btn.Size = new System.Drawing.Size(96, 23);
this.removeIgnore_btn.TabIndex = 1;
this.removeIgnore_btn.Text = "Remove";
this.removeIgnore_btn.UseVisualStyleBackColor = true;
this.removeIgnore_btn.Click += new System.EventHandler(this.removeIgnore_btn_Click);
//
// Settings
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(mainTable);
this.Name = "Settings";
this.Size = new System.Drawing.Size(637, 450);
this.Load += new System.EventHandler(this.SettingsLoad);
mainTable.ResumeLayout(false);
this.groupDirectories.ResumeLayout(false);
tableDirectories.ResumeLayout(false);
tableDirectories.PerformLayout();
destinationButtonsFlow.ResumeLayout(false);
sortOptionsGroup.ResumeLayout(false);
sortOptionsFlow.ResumeLayout(false);
sortOptionsFlow.PerformLayout();
searchOptionsGroup.ResumeLayout(false);
searchOptionsFlow.ResumeLayout(false);
formatOptionsGroup.ResumeLayout(false);
formatTable.ResumeLayout(false);
formatTable.PerformLayout();
flowBottomButtons.ResumeLayout(false);
this.flowLayoutPanel1.ResumeLayout(false);
this.ResumeLayout(false);
}
示例6: InitializeComponent
//.........这里部分代码省略.........
this.btnTree.UseVisualStyleBackColor = true;
this.btnTree.Click += new EventHandler(this.btnTree_Click);
manager.ApplyResources(this.tlpBack, "tlpBack");
this.tlpBack.Controls.Add(this.lblCopyTo, 0, 0);
this.tlpBack.Controls.Add(this.chkAsyncFileCopy, 1, 6);
this.tlpBack.Controls.Add(this.chkCopyItemACL, 0, 6);
this.tlpBack.Controls.Add(this.chkSkipEmptyFolders, 1, 5);
this.tlpBack.Controls.Add(this.cmbCopyTo, 0, 1);
this.tlpBack.Controls.Add(this.chkCheckFreeSpace, 1, 4);
this.tlpBack.Controls.Add(this.chkCopyItemTime, 0, 5);
this.tlpBack.Controls.Add(this.lblMode, 0, 2);
this.tlpBack.Controls.Add(this.cmbMode, 0, 3);
this.tlpBack.Controls.Add(this.lblFilter, 1, 2);
this.tlpBack.Controls.Add(this.chkDeleteSource, 0, 4);
this.tlpBack.Controls.Add(this.cmbFilter, 1, 3);
this.tlpBack.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
this.tlpBack.Name = "tlpBack";
this.lblCopyTo.AutoEllipsis = true;
this.tlpBack.SetColumnSpan(this.lblCopyTo, 2);
manager.ApplyResources(this.lblCopyTo, "lblCopyTo");
this.lblCopyTo.Name = "lblCopyTo";
manager.ApplyResources(this.chkAsyncFileCopy, "chkAsyncFileCopy");
this.chkAsyncFileCopy.Checked = true;
this.chkAsyncFileCopy.CheckState = CheckState.Indeterminate;
this.chkAsyncFileCopy.Name = "chkAsyncFileCopy";
this.chkAsyncFileCopy.ThreeState = true;
this.chkAsyncFileCopy.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkCopyItemACL, "chkCopyItemACL");
this.chkCopyItemACL.Name = "chkCopyItemACL";
this.chkCopyItemACL.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkSkipEmptyFolders, "chkSkipEmptyFolders");
this.chkSkipEmptyFolders.Name = "chkSkipEmptyFolders";
this.chkSkipEmptyFolders.UseVisualStyleBackColor = true;
this.AutoComplete.SetAutoComplete(this.cmbCopyTo, true);
this.tlpBack.SetColumnSpan(this.cmbCopyTo, 2);
manager.ApplyResources(this.cmbCopyTo, "cmbCopyTo");
this.cmbCopyTo.Name = "cmbCopyTo";
this.Validator.SetValidateOn(this.cmbCopyTo, ValidateOn.TextChangedTimer);
this.cmbCopyTo.Validating += new CancelEventHandler(this.cmbCopyTo_Validating);
this.cmbCopyTo.SelectionChangeCommitted += new EventHandler(this.cmbCopyTo_TextUpdate);
this.cmbCopyTo.TextUpdate += new EventHandler(this.cmbCopyTo_TextUpdate);
manager.ApplyResources(this.chkCheckFreeSpace, "chkCheckFreeSpace");
this.chkCheckFreeSpace.Checked = true;
this.chkCheckFreeSpace.CheckState = CheckState.Checked;
this.chkCheckFreeSpace.Name = "chkCheckFreeSpace";
this.chkCheckFreeSpace.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkCopyItemTime, "chkCopyItemTime");
this.chkCopyItemTime.Checked = true;
this.chkCopyItemTime.CheckState = CheckState.Checked;
this.chkCopyItemTime.Name = "chkCopyItemTime";
this.chkCopyItemTime.UseVisualStyleBackColor = true;
manager.ApplyResources(this.lblMode, "lblMode");
this.lblMode.Name = "lblMode";
manager.ApplyResources(this.cmbMode, "cmbMode");
this.cmbMode.DropDownStyle = ComboBoxStyle.DropDownList;
this.cmbMode.Items.AddRange(new object[] { manager.GetString("cmbMode.Items"), manager.GetString("cmbMode.Items1"), manager.GetString("cmbMode.Items2"), manager.GetString("cmbMode.Items3"), manager.GetString("cmbMode.Items4") });
this.cmbMode.MinimumSize = new Size(0xca, 0);
this.cmbMode.Name = "cmbMode";
manager.ApplyResources(this.lblFilter, "lblFilter");
this.lblFilter.Name = "lblFilter";
manager.ApplyResources(this.chkDeleteSource, "chkDeleteSource");
this.chkDeleteSource.Name = "chkDeleteSource";
this.chkDeleteSource.UseVisualStyleBackColor = true;
this.chkDeleteSource.Click += new EventHandler(this.chkDeleteSource_Click);
manager.ApplyResources(this.cmbFilter, "cmbFilter");
this.cmbFilter.DrawMode = DrawMode.OwnerDrawFixed;
this.cmbFilter.FormattingEnabled = true;
this.cmbFilter.Name = "cmbFilter";
manager.ApplyResources(this.bvlButtons, "bvlButtons");
this.bvlButtons.ForeColor = SystemColors.ControlDarkDark;
this.bvlButtons.Name = "bvlButtons";
this.bvlButtons.Sides = Border3DSide.Top;
this.bvlButtons.Style = Border3DStyle.Flat;
this.Validator.Owner = this;
this.Validator.OwnerFormValidate = FormValidate.DisableAcceptButton;
this.AutoComplete.UseCustomSource = Settings.Default.UseACSRecentItems;
this.AutoComplete.UseEnvironmentVariablesSource = Settings.Default.UseACSEnvironmentVariables;
this.AutoComplete.UseFileSystemSource = Settings.Default.UseACSFileSystem;
base.AcceptButton = this.btnOk;
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
this.AutoValidate = AutoValidate.EnableAllowFocusChange;
base.CancelButton = this.btnCancel;
base.Controls.Add(panel);
base.Controls.Add(this.bvlButtons);
base.Controls.Add(this.tlpBack);
base.FixMouseWheel = Settings.Default.FixMouseWheel;
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "FileSystemCopyDialog";
base.ShowInTaskbar = false;
base.Shown += new EventHandler(this.FileSystemCopyDialog_Shown);
panel.ResumeLayout(false);
panel.PerformLayout();
this.tlpBack.ResumeLayout(false);
this.tlpBack.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
示例7: Bug81843
public void Bug81843 ()
{
Form f = new Form ();
f.ShowInTaskbar = false;
TableLayoutPanel tableLayoutPanel1;
Button button2;
TextBox textBox1;
Button button4;
tableLayoutPanel1 = new TableLayoutPanel ();
button2 = new Button ();
button4 = new Button ();
textBox1 = new TextBox ();
tableLayoutPanel1.SuspendLayout ();
f.SuspendLayout ();
tableLayoutPanel1.AutoSize = true;
tableLayoutPanel1.ColumnCount = 3;
tableLayoutPanel1.ColumnStyles.Add (new ColumnStyle ());
tableLayoutPanel1.ColumnStyles.Add (new ColumnStyle ());
tableLayoutPanel1.ColumnStyles.Add (new ColumnStyle ());
tableLayoutPanel1.Controls.Add (button2, 0, 1);
tableLayoutPanel1.Controls.Add (button4, 2, 1);
tableLayoutPanel1.Controls.Add (textBox1, 1, 0);
tableLayoutPanel1.Location = new Point (0, 0);
tableLayoutPanel1.RowCount = 2;
tableLayoutPanel1.RowStyles.Add (new RowStyle (SizeType.Percent, 50F));
tableLayoutPanel1.RowStyles.Add (new RowStyle (SizeType.Percent, 50F));
tableLayoutPanel1.Size = new Size (292, 287);
button2.Size = new Size (75, 23);
button4.Size = new Size (75, 23);
textBox1.Dock = DockStyle.Fill;
textBox1.Location = new Point (84, 3);
textBox1.Multiline = true;
textBox1.Size = new Size (94, 137);
f.ClientSize = new Size (292, 312);
f.Controls.Add (tableLayoutPanel1);
f.Name = "Form1";
f.Text = "Form1";
tableLayoutPanel1.ResumeLayout (false);
tableLayoutPanel1.PerformLayout ();
f.ResumeLayout (false);
f.PerformLayout ();
f.Show ();
Assert.AreEqual (new Rectangle (3, 146, 75, 23), button2.Bounds, "A1");
Assert.AreEqual (new Rectangle (184, 146, 75, 23), button4.Bounds, "A2");
Assert.AreEqual (new Rectangle (84, 3, 94, 137), textBox1.Bounds, "A3");
f.Dispose ();
}
示例8: InitializeComponent
//.........这里部分代码省略.........
_okButton.Text = Resources.Text_TreeNodeCollectionEditor_okButton;
_cancelButton.DialogResult = DialogResult.Cancel;
_cancelButton.Dock = DockStyle.Fill;
_cancelButton.Text = Resources.Text_TreeNodeCollectionEditor_cancelButton;
_nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
_nodeControlPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50f));
_nodeControlPanel.Dock = DockStyle.Fill;
_nodeControlPanel.Controls.Add(_addRootButton, 0, 0);
_nodeControlPanel.Controls.Add(_addChildButton, 1, 0);
_nodeControlPanel.Margin = new Padding(0, 3, 3, 3);
_nodeControlPanel.RowStyles.Add(new RowStyle());
_addRootButton.Dock = DockStyle.Fill;
_addRootButton.Margin = new Padding(0, 0, 3, 0);
_addRootButton.Text = Resources.Text_TreeNodeCollectionEditor_addRootButton;
_addChildButton.Dock = DockStyle.Fill;
_addChildButton.Margin = new Padding(3, 0, 0, 0);
_addChildButton.Text = Resources.Text_TreeNodeCollectionEditor_addChildButton;
_deleteButton.Dock = DockStyle.Fill;
_deleteButton.Margin = new Padding(0, 3, 0, 0);
_deleteButton.Image = Resources.Delete;
_deleteButton.Size = new Size(30, 30);
_moveDownButton.Dock = DockStyle.Fill;
_moveDownButton.Margin = new Padding(0, 1, 0, 3);
_moveDownButton.Image = Resources.Down;
_moveDownButton.Size = new Size(30, 30);
_moveUpButton.Dock = DockStyle.Fill;
_moveUpButton.Margin = new Padding(0, 0, 0, 1);
_moveUpButton.Image = Resources.Up;
_moveUpButton.Size = new Size(30, 30);
_propertyGrid.LineColor = SystemColors.ScrollBar;
_overarchingTableLayoutPanel.SetRowSpan(_propertyGrid, 2);
_propertyDescriptionLabel.Dock = DockStyle.Fill;
_propertyDescriptionLabel.Margin = new Padding(3, 1, 0, 0);
_treeView.AllowDrop = true;
_treeView.HideSelection = false;
_treeView.Margin = new Padding(0, 3, 3, 3);
_treeViewDescriptionLabel.Dock = DockStyle.Fill;
_treeViewDescriptionLabel.Margin = new Padding(0, 1, 3, 0);
_treeViewDescriptionLabel.Text = Resources.Text_TreeNodeCollectionEditor_treeViewDescriptionLabel;
_overarchingTableLayoutPanel.Dock = DockStyle.Fill;
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 250f));
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 40f));
_overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100f));
_overarchingTableLayoutPanel.Controls.Add(_navigationButtonsTableLayoutPanel, 1, 1);
_overarchingTableLayoutPanel.Controls.Add(_propertyDescriptionLabel, 2, 0);
_overarchingTableLayoutPanel.Controls.Add(_propertyGrid, 2, 1);
_overarchingTableLayoutPanel.Controls.Add(_treeView, 0, 1);
_overarchingTableLayoutPanel.Controls.Add(_treeViewDescriptionLabel, 0, 0);
_overarchingTableLayoutPanel.Controls.Add(_nodeControlPanel, 0, 2);
_overarchingTableLayoutPanel.Controls.Add(_okCancelPanel, 2, 3);
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100f));
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
_overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 30f));
_navigationButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
_navigationButtonsTableLayoutPanel.Controls.Add(_moveUpButton, 0, 0);
_navigationButtonsTableLayoutPanel.Controls.Add(_deleteButton, 0, 2);
_navigationButtonsTableLayoutPanel.Controls.Add(_moveDownButton, 0, 1);
_navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
_navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
_navigationButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
this.AcceptButton = _okButton;
this.AutoScaleMode = AutoScaleMode.Font;
this.CancelButton = _cancelButton;
this.Controls.Add(_overarchingTableLayoutPanel);
this.Padding = new Padding(10);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.Size = new Size(580, 480);
this.MinimumSize = this.Size;
this.Text = Resources.Text_TreeNodeCollectionEditor_EditorForm;
_okCancelPanel.ResumeLayout(false);
_okCancelPanel.PerformLayout();
_nodeControlPanel.ResumeLayout(false);
_nodeControlPanel.PerformLayout();
_overarchingTableLayoutPanel.ResumeLayout(false);
_overarchingTableLayoutPanel.PerformLayout();
_navigationButtonsTableLayoutPanel.ResumeLayout(false);
base.ResumeLayout(false);
}
示例9: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(SelectDialog));
this.rbMask = new RadioButton();
this.cmbMask = new ComboBox();
this.chkExceptMask = new CheckBox();
this.rbFilter = new RadioButton();
this.lstFilters = new ListBox();
this.chkSelectFolders = new CheckBox();
this.btnOk = new Button();
this.btnCancel = new Button();
this.bvlButtons = new Bevel();
TableLayoutPanel panel = new TableLayoutPanel();
TableLayoutPanel panel2 = new TableLayoutPanel();
panel.SuspendLayout();
panel2.SuspendLayout();
base.SuspendLayout();
manager.ApplyResources(panel, "tlpBack");
panel.Controls.Add(this.rbMask, 0, 0);
panel.Controls.Add(this.cmbMask, 1, 1);
panel.Controls.Add(this.chkExceptMask, 1, 3);
panel.Controls.Add(this.rbFilter, 0, 4);
panel.Controls.Add(this.lstFilters, 1, 5);
panel.Controls.Add(this.chkSelectFolders, 1, 2);
panel.Name = "tlpBack";
manager.ApplyResources(this.rbMask, "rbMask");
this.rbMask.Checked = true;
panel.SetColumnSpan(this.rbMask, 2);
this.rbMask.Name = "rbMask";
this.rbMask.TabStop = true;
this.rbMask.UseVisualStyleBackColor = true;
this.rbMask.Click += new EventHandler(this.rbMask_Click);
manager.ApplyResources(this.cmbMask, "cmbMask");
this.cmbMask.Name = "cmbMask";
this.cmbMask.TextUpdate += new EventHandler(this.cmbMask_TextUpdate);
manager.ApplyResources(this.chkExceptMask, "chkExceptMask");
this.chkExceptMask.Name = "chkExceptMask";
this.chkExceptMask.UseVisualStyleBackColor = true;
manager.ApplyResources(this.rbFilter, "rbFilter");
panel.SetColumnSpan(this.rbFilter, 2);
this.rbFilter.Name = "rbFilter";
this.rbFilter.UseVisualStyleBackColor = true;
this.rbFilter.Click += new EventHandler(this.rbFilter_Click);
manager.ApplyResources(this.lstFilters, "lstFilters");
this.lstFilters.FormattingEnabled = true;
this.lstFilters.Name = "lstFilters";
this.lstFilters.Enter += new EventHandler(this.lstFilters_Enter);
manager.ApplyResources(this.chkSelectFolders, "chkSelectFolders");
this.chkSelectFolders.Name = "chkSelectFolders";
this.chkSelectFolders.UseVisualStyleBackColor = true;
manager.ApplyResources(panel2, "tlpButtons");
panel2.Controls.Add(this.btnOk, 1, 0);
panel2.Controls.Add(this.btnCancel, 2, 0);
panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
panel2.Name = "tlpButtons";
manager.ApplyResources(this.btnOk, "btnOk");
this.btnOk.DialogResult = DialogResult.OK;
this.btnOk.Name = "btnOk";
this.btnOk.UseVisualStyleBackColor = true;
manager.ApplyResources(this.btnCancel, "btnCancel");
this.btnCancel.CausesValidation = false;
this.btnCancel.DialogResult = DialogResult.Cancel;
this.btnCancel.Name = "btnCancel";
this.btnCancel.UseVisualStyleBackColor = true;
manager.ApplyResources(this.bvlButtons, "bvlButtons");
this.bvlButtons.ForeColor = SystemColors.ControlDarkDark;
this.bvlButtons.Name = "bvlButtons";
this.bvlButtons.Sides = Border3DSide.Top;
this.bvlButtons.Style = Border3DStyle.Flat;
base.AcceptButton = this.btnOk;
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.CancelButton = this.btnCancel;
base.Controls.Add(panel2);
base.Controls.Add(this.bvlButtons);
base.Controls.Add(panel);
base.FixMouseWheel = Settings.Default.FixMouseWheel;
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "SelectDialog";
base.ShowInTaskbar = false;
base.Shown += new EventHandler(this.SelectDialog_Shown);
base.FormClosed += new FormClosedEventHandler(this.SelectDialog_FormClosed);
panel.ResumeLayout(false);
panel.PerformLayout();
panel2.ResumeLayout(false);
panel2.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
示例10: InitializeComponent
//.........这里部分代码省略.........
this.tsbLeftAlign.Image = Resources.ImageThrobber;
this.tsbLeftAlign.Name = "tsbLeftAlign";
this.tsbLeftAlign.Paint += new PaintEventHandler(this.tsbAlign_Paint);
this.tsbLeftAlign.Click += new EventHandler(this.tsbAlign_Click);
this.tsbCenter.DisplayStyle = ToolStripItemDisplayStyle.Image;
manager.ApplyResources(this.tsbCenter, "tsbCenter");
this.tsbCenter.Image = Resources.ImageThrobber;
this.tsbCenter.Name = "tsbCenter";
this.tsbCenter.Paint += new PaintEventHandler(this.tsbAlign_Paint);
this.tsbCenter.Click += new EventHandler(this.tsbAlign_Click);
this.tsbRightAlign.DisplayStyle = ToolStripItemDisplayStyle.Image;
manager.ApplyResources(this.tsbRightAlign, "tsbRightAlign");
this.tsbRightAlign.Image = Resources.ImageThrobber;
this.tsbRightAlign.Name = "tsbRightAlign";
this.tsbRightAlign.Paint += new PaintEventHandler(this.tsbAlign_Paint);
this.tsbRightAlign.Click += new EventHandler(this.tsbAlign_Click);
manager.ApplyResources(this.chkRememberColumns, "chkRememberColumns");
panel.SetColumnSpan(this.chkRememberColumns, 2);
this.chkRememberColumns.Name = "chkRememberColumns";
this.chkRememberColumns.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkAutosizeColumns, "chkAutosizeColumns");
panel.SetColumnSpan(this.chkAutosizeColumns, 2);
this.chkAutosizeColumns.Name = "chkAutosizeColumns";
this.chkAutosizeColumns.UseVisualStyleBackColor = true;
manager.ApplyResources(control, "lblColumns");
panel.SetColumnSpan(control, 2);
control.Name = "lblColumns";
manager.ApplyResources(panel2, "tlpTemplate");
panel2.Controls.Add(label2, 0, 0);
panel2.Controls.Add(this.cmbTemplate, 1, 0);
panel2.Controls.Add(this.btnSaveTemplate, 2, 0);
panel2.Controls.Add(this.btnDeleteTemplate, 3, 0);
panel2.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
panel2.Name = "tlpTemplate";
manager.ApplyResources(label2, "lblTemplate");
label2.Name = "lblTemplate";
this.cmbTemplate.DeleteButton = this.btnDeleteTemplate;
manager.ApplyResources(this.cmbTemplate, "cmbTemplate");
this.cmbTemplate.FormattingEnabled = true;
this.cmbTemplate.Name = "cmbTemplate";
this.cmbTemplate.SaveButton = this.btnSaveTemplate;
this.cmbTemplate.SelectionChangeCommitted += new EventHandler(this.cmbTemplate_SelectionChangeCommitted);
this.cmbTemplate.Leave += new EventHandler(this.cmbTemplate_TextUpdate);
this.cmbTemplate.Enter += new EventHandler(this.cmbTemplate_TextUpdate);
this.cmbTemplate.TextUpdate += new EventHandler(this.cmbTemplate_TextUpdate);
manager.ApplyResources(this.btnDeleteTemplate, "btnDeleteTemplate");
this.btnDeleteTemplate.Name = "btnDeleteTemplate";
this.btnDeleteTemplate.UseVisualStyleBackColor = true;
manager.ApplyResources(this.btnSaveTemplate, "btnSaveTemplate");
this.btnSaveTemplate.Name = "btnSaveTemplate";
this.btnSaveTemplate.UseVisualStyleBackColor = true;
this.btnSaveTemplate.Click += new EventHandler(this.btnSaveTemplate_Click);
manager.ApplyResources(this.bvlButtons, "bvlButtons");
this.bvlButtons.ForeColor = SystemColors.ControlDarkDark;
this.bvlButtons.Name = "bvlButtons";
this.bvlButtons.Sides = Border3DSide.Top;
this.bvlButtons.Style = Border3DStyle.Flat;
manager.ApplyResources(this.btnOk, "btnOk");
this.btnOk.DialogResult = DialogResult.OK;
this.btnOk.Name = "btnOk";
this.btnOk.UseVisualStyleBackColor = true;
manager.ApplyResources(this.btnCancel, "btnCancel");
this.btnCancel.DialogResult = DialogResult.Cancel;
this.btnCancel.Name = "btnCancel";
this.btnCancel.UseVisualStyleBackColor = true;
manager.ApplyResources(this.tlpButtons, "tlpButtons");
this.tlpButtons.Controls.Add(this.btnOk, 1, 0);
this.tlpButtons.Controls.Add(this.btnCancel, 2, 0);
this.tlpButtons.GrowStyle = TableLayoutPanelGrowStyle.FixedSize;
this.tlpButtons.Name = "tlpButtons";
manager.ApplyResources(this.bvlTemplate, "bvlTemplate");
this.bvlTemplate.ForeColor = SystemColors.ControlDarkDark;
this.bvlTemplate.Name = "bvlTemplate";
this.bvlTemplate.Sides = Border3DSide.Top;
base.AcceptButton = this.btnOk;
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.CancelButton = this.btnCancel;
base.Controls.Add(panel);
base.Controls.Add(this.bvlTemplate);
base.Controls.Add(this.bvlButtons);
base.Controls.Add(this.tlpButtons);
base.Controls.Add(panel2);
base.FixMouseWheel = Settings.Default.FixMouseWheel;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "ManageColumnsDialog";
base.ShowInTaskbar = false;
base.Shown += new EventHandler(this.ManageColumnsDialog_Shown);
panel.ResumeLayout(false);
panel.PerformLayout();
this.tsAlign.ResumeLayout(false);
this.tsAlign.PerformLayout();
panel2.ResumeLayout(false);
panel2.PerformLayout();
this.tlpButtons.ResumeLayout(false);
this.tlpButtons.PerformLayout();
base.ResumeLayout(false);
base.PerformLayout();
}
示例11: InitializeComponent
private void InitializeComponent()
{
ComponentResourceManager manager = new ComponentResourceManager(typeof(FtpOptionControl));
PropertyValue value2 = new PropertyValue();
PropertyValue value3 = new PropertyValue();
PropertyValue value4 = new PropertyValue();
PropertyValue value5 = new PropertyValue();
PropertyValue value6 = new PropertyValue();
PropertyValue value7 = new PropertyValue();
this.chkStoreCredential = new CheckBox();
this.cmbUploadFileNameCasing = new ComboBoxEx();
this.chkUsePrefetch = new CheckBox();
this.chkUseCache = new CheckBox();
this.chkUsePassive = new CheckBox();
this.lblEncoding = new Label();
this.cmbEncoding = new ComboBoxEx();
this.ValuesWatcher = new PropertyValuesWatcher();
Label label = new Label();
TableLayoutPanel panel = new TableLayoutPanel();
panel.SuspendLayout();
((ISupportInitialize) this.ValuesWatcher).BeginInit();
base.SuspendLayout();
manager.ApplyResources(label, "lblUploadFileNameCasing");
label.Name = "lblUploadFileNameCasing";
manager.ApplyResources(panel, "tlpBack");
panel.Controls.Add(label, 0, 4);
panel.Controls.Add(this.chkStoreCredential, 0, 3);
panel.Controls.Add(this.cmbUploadFileNameCasing, 1, 4);
panel.Controls.Add(this.chkUsePrefetch, 0, 2);
panel.Controls.Add(this.chkUseCache, 0, 1);
panel.Controls.Add(this.chkUsePassive, 0, 0);
panel.Controls.Add(this.lblEncoding, 0, 5);
panel.Controls.Add(this.cmbEncoding, 1, 5);
panel.Name = "tlpBack";
manager.ApplyResources(this.chkStoreCredential, "chkStoreCredential");
panel.SetColumnSpan(this.chkStoreCredential, 2);
this.chkStoreCredential.Name = "chkStoreCredential";
this.chkStoreCredential.UseVisualStyleBackColor = true;
manager.ApplyResources(this.cmbUploadFileNameCasing, "cmbUploadFileNameCasing");
this.cmbUploadFileNameCasing.DropDownStyle = ComboBoxStyle.DropDownList;
this.cmbUploadFileNameCasing.FormattingEnabled = true;
this.cmbUploadFileNameCasing.MaximumSize = new Size(150, 0);
this.cmbUploadFileNameCasing.MinimumSize = new Size(110, 0);
this.cmbUploadFileNameCasing.Name = "cmbUploadFileNameCasing";
manager.ApplyResources(this.chkUsePrefetch, "chkUsePrefetch");
panel.SetColumnSpan(this.chkUsePrefetch, 2);
this.chkUsePrefetch.Name = "chkUsePrefetch";
this.chkUsePrefetch.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkUseCache, "chkUseCache");
this.chkUseCache.Checked = true;
this.chkUseCache.CheckState = CheckState.Checked;
panel.SetColumnSpan(this.chkUseCache, 2);
this.chkUseCache.Name = "chkUseCache";
this.chkUseCache.UseVisualStyleBackColor = true;
this.chkUseCache.CheckedChanged += new EventHandler(this.chkUseCache_CheckedChanged);
manager.ApplyResources(this.chkUsePassive, "chkUsePassive");
this.chkUsePassive.Checked = true;
this.chkUsePassive.CheckState = CheckState.Checked;
panel.SetColumnSpan(this.chkUsePassive, 2);
this.chkUsePassive.Name = "chkUsePassive";
this.chkUsePassive.UseVisualStyleBackColor = true;
manager.ApplyResources(this.lblEncoding, "lblEncoding");
this.lblEncoding.Name = "lblEncoding";
manager.ApplyResources(this.cmbEncoding, "cmbEncoding");
this.cmbEncoding.DisplayMember = "EncodingName";
this.cmbEncoding.DropDownStyle = ComboBoxStyle.DropDownList;
this.cmbEncoding.FormattingEnabled = true;
this.cmbEncoding.MaximumSize = new Size(150, 0);
this.cmbEncoding.MinimumSize = new Size(110, 0);
this.cmbEncoding.Name = "cmbEncoding";
this.cmbEncoding.ValueMember = "WebName";
value2.DataObject = this.chkUsePassive;
value2.PropertyName = "Checked";
value3.DataObject = this.chkUseCache;
value3.PropertyName = "Checked";
value4.DataObject = this.chkUsePrefetch;
value4.PropertyName = "Checked";
value5.DataObject = this.chkStoreCredential;
value5.PropertyName = "Checked";
value6.DataObject = this.cmbUploadFileNameCasing;
value6.PropertyName = "SelectedItem";
value7.DataObject = this.cmbEncoding;
value7.PropertyName = "SelectedIndex";
this.ValuesWatcher.Items.AddRange(new PropertyValue[] { value2, value3, value4, value5, value6, value7 });
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.Controls.Add(panel);
base.Name = "FtpOptionControl";
panel.ResumeLayout(false);
panel.PerformLayout();
((ISupportInitialize) this.ValuesWatcher).EndInit();
base.ResumeLayout(false);
base.PerformLayout();
}
示例12: ReplayHostManager
//.........这里部分代码省略.........
if (ex.Data.Contains("status"))
errmsg = ((ReplayCreateStatus)ex.Data["status"]).Str();
MessageBox.Show(String.Format("Failed to fetch local proxy drivers: {0}.\n\nCheck diagnostic log in Help menu for more details.", errmsg),
"Error getting driver list", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
localProxy.Items.AddRange(proxies);
m_Core.Config.LocalProxy = Helpers.Clamp(m_Core.Config.LocalProxy, 0, proxies.Length - 1);
localProxy.SelectedIndex = m_Core.Config.LocalProxy;
var driversTable = new TableLayoutPanel();
driversTable.SuspendLayout();
driversBox.Controls.Clear();
driversBox.Controls.Add(driversTable);
driversTable.ColumnCount = 2;
driversTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 30F));
driversTable.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 70F));
driversTable.Dock = System.Windows.Forms.DockStyle.Fill;
driversTable.RowCount = m_Core.Config.ReplayHosts.Count + 1;
int row = 0;
List<string> hosts = new List<string>();
foreach (var kv in m_Core.Config.ReplayHosts)
{
var driver = kv.Key;
var lab = new Label();
lab.Anchor = AnchorStyles.Right;
lab.AutoSize = true;
lab.Text = driver;
var host = new ComboBox();
host.Dock = DockStyle.Fill;
host.FormattingEnabled = true;
host.TabIndex = row + 1;
hosts.Clear();
if (kv.Value != "")
hosts.Add(kv.Value);
var plugins = renderdocplugin.PluginHelpers.GetPlugins();
// search plugins for to find other targets for this driver
foreach (var plugin in plugins)
{
var replayman = renderdocplugin.PluginHelpers.GetPluginInterface<renderdocplugin.ReplayManagerPlugin>(plugin);
if (replayman != null && replayman.GetTargetType() == driver)
{
var targets = replayman.GetOnlineTargets();
foreach (var t in targets)
{
if (!hosts.Contains(t))
hosts.Add(t);
}
}
}
// fill the combo box with previously used hosts
foreach (var prev in m_Core.Config.PreviouslyUsedHosts)
{
if (prev.Key == driver && !hosts.Contains(prev.Value))
hosts.Add(prev.Value);
}
driversTable.Controls.Add(lab, 0, row);
driversTable.Controls.Add(host, 1, row);
driversTable.RowStyles.Add(new RowStyle());
hosts.Remove("");
host.Items.AddRange(hosts.ToArray());
if (kv.Value != "")
host.SelectedIndex = 0;
host.Tag = driver;
host.SelectedValueChanged += new EventHandler(host_SelectedValueChanged);
host.KeyUp += new KeyEventHandler(host_KeyUp);
m_Hosts.Add(host);
row++;
}
driversTable.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
driversTable.ResumeLayout(false);
driversTable.PerformLayout();
}
示例13: InitializeComponent
//.........这里部分代码省略.........
tableLayoutPanel.Location = new Point(9, 9);
tableLayoutPanel.Name = "tableLayoutPanel";
tableLayoutPanel.RowCount = 6;
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 10F));
tableLayoutPanel.Size = new Size(417, 265);
tableLayoutPanel.TabIndex = 0;
//
// labelProductName
//
labelProductName.Dock = DockStyle.Fill;
labelProductName.Location = new Point(143, 0);
labelProductName.Margin = new Padding(6, 0, 3, 0);
labelProductName.MaximumSize = new Size(0, 17);
labelProductName.Name = "labelProductName";
labelProductName.Size = new Size(271, 17);
labelProductName.TabIndex = 19;
labelProductName.Text = "Product Name";
labelProductName.TextAlign = ContentAlignment.MiddleLeft;
//
// labelVersion
//
labelVersion.Dock = DockStyle.Fill;
labelVersion.Location = new Point(143, 26);
labelVersion.Margin = new Padding(6, 0, 3, 0);
labelVersion.MaximumSize = new Size(0, 17);
labelVersion.Name = "labelVersion";
labelVersion.Size = new Size(271, 17);
labelVersion.TabIndex = 0;
labelVersion.Text = "Version";
labelVersion.TextAlign = ContentAlignment.MiddleLeft;
//
// labelCopyright
//
labelCopyright.Dock = DockStyle.Fill;
labelCopyright.Location = new Point(143, 52);
labelCopyright.Margin = new Padding(6, 0, 3, 0);
labelCopyright.MaximumSize = new Size(0, 17);
labelCopyright.Name = "labelCopyright";
labelCopyright.Size = new Size(271, 17);
labelCopyright.TabIndex = 21;
labelCopyright.Text = "Copyright";
labelCopyright.TextAlign = ContentAlignment.MiddleLeft;
//
// labelCompanyName
//
labelCompanyName.Dock = DockStyle.Fill;
labelCompanyName.Location = new Point(143, 78);
labelCompanyName.Margin = new Padding(6, 0, 3, 0);
labelCompanyName.MaximumSize = new Size(0, 17);
labelCompanyName.Name = "labelCompanyName";
labelCompanyName.Size = new Size(271, 17);
labelCompanyName.TabIndex = 22;
labelCompanyName.Text = "Company Name";
labelCompanyName.TextAlign = ContentAlignment.MiddleLeft;
//
// textBoxDescription
//
textBoxDescription.Dock = DockStyle.Fill;
textBoxDescription.Location = new Point(143, 107);
textBoxDescription.Margin = new Padding(6, 3, 3, 3);
textBoxDescription.Multiline = true;
textBoxDescription.Name = "textBoxDescription";
textBoxDescription.ReadOnly = true;
textBoxDescription.ScrollBars = ScrollBars.Both;
textBoxDescription.Size = new Size(271, 126);
textBoxDescription.TabIndex = 23;
textBoxDescription.TabStop = false;
textBoxDescription.Text = "Description";
//
// okButton
//
okButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
okButton.Location = new Point(339, 239);
okButton.Name = "okButton";
okButton.Size = new Size(75, 23);
okButton.TabIndex = 24;
okButton.Text = "&OK";
//
// AboutWindow
//
AcceptButton = okButton;
ClientSize = new Size(435, 283);
Controls.Add(tableLayoutPanel);
MaximizeBox = false;
MinimizeBox = false;
Name = "AboutWindow";
Padding = new Padding(9);
ShowIcon = false;
ShowInTaskbar = false;
StartPosition = FormStartPosition.CenterParent;
Text = "AboutWindow";
tableLayoutPanel.ResumeLayout(false);
tableLayoutPanel.PerformLayout();
ResumeLayout(false);
}
示例14: InitializeComponent
//.........这里部分代码省略.........
//
this._logoPictureBox.Dock = DockStyle.Fill;
this._logoPictureBox.Image = (Image)resources.GetObject("_logoPictureBox.Image");
this._logoPictureBox.Location = new Point(3, 3);
this._logoPictureBox.Name = "_logoPictureBox";
_mainTableLayoutPanel.SetRowSpan(this._logoPictureBox, 6);
this._logoPictureBox.Size = new Size(131, 259);
this._logoPictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
this._logoPictureBox.TabIndex = 12;
this._logoPictureBox.TabStop = false;
//
// _productNameLabel
//
this._productNameLabel.Dock = DockStyle.Fill;
this._productNameLabel.Location = new Point(143, 0);
this._productNameLabel.Margin = new Padding(6, 0, 3, 0);
this._productNameLabel.MaximumSize = new Size(0, 17);
this._productNameLabel.Name = "_productNameLabel";
this._productNameLabel.Size = new Size(271, 17);
this._productNameLabel.TabIndex = 19;
this._productNameLabel.TextAlign = ContentAlignment.MiddleLeft;
//
// _versionLabel
//
this._versionLabel.Dock = DockStyle.Fill;
this._versionLabel.Location = new Point(143, 26);
this._versionLabel.Margin = new Padding(6, 0, 3, 0);
this._versionLabel.MaximumSize = new Size(0, 17);
this._versionLabel.Name = "_versionLabel";
this._versionLabel.Size = new Size(271, 17);
this._versionLabel.TabIndex = 0;
this._versionLabel.TextAlign = ContentAlignment.MiddleLeft;
//
// _copyrightLabel
//
this._copyrightLabel.Dock = DockStyle.Fill;
this._copyrightLabel.Location = new Point(143, 52);
this._copyrightLabel.Margin = new Padding(6, 0, 3, 0);
this._copyrightLabel.MaximumSize = new Size(0, 17);
this._copyrightLabel.Name = "_copyrightLabel";
this._copyrightLabel.Size = new Size(271, 17);
this._copyrightLabel.TabIndex = 21;
this._copyrightLabel.TextAlign = ContentAlignment.MiddleLeft;
//
// _companyNameLabel
//
this._companyNameLabel.Dock = DockStyle.Fill;
this._companyNameLabel.Location = new Point(143, 78);
this._companyNameLabel.Margin = new Padding(6, 0, 3, 0);
this._companyNameLabel.MaximumSize = new Size(0, 17);
this._companyNameLabel.Name = "_companyNameLabel";
this._companyNameLabel.Size = new Size(271, 17);
this._companyNameLabel.TabIndex = 22;
this._companyNameLabel.TextAlign = ContentAlignment.MiddleLeft;
//
// _descriptionTextBox
//
this._descriptionTextBox.Dock = DockStyle.Fill;
this._descriptionTextBox.Location = new Point(143, 107);
this._descriptionTextBox.Margin = new Padding(6, 3, 3, 3);
this._descriptionTextBox.Multiline = true;
this._descriptionTextBox.Name = "_descriptionTextBox";
this._descriptionTextBox.ReadOnly = true;
this._descriptionTextBox.ScrollBars = ScrollBars.Both;
this._descriptionTextBox.Size = new Size(271, 126);
this._descriptionTextBox.TabIndex = 23;
this._descriptionTextBox.TabStop = false;
//
// _okButton
//
_okButton.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
_okButton.DialogResult = DialogResult.Cancel;
_okButton.Location = new Point(339, 239);
_okButton.Name = "_okButton";
_okButton.Size = new Size(75, 23);
_okButton.TabIndex = 24;
_okButton.Text = Res.OKText;
//
// AboutForm
//
this.AcceptButton = _okButton;
this.AutoScaleDimensions = new SizeF(6F, 13F);
this.AutoScaleMode = AutoScaleMode.Font;
this.CancelButton = _okButton;
this.ClientSize = new Size(435, 283);
this.Controls.Add(_mainTableLayoutPanel);
this.FormBorderStyle = FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutForm";
this.Padding = new Padding(9);
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = FormStartPosition.CenterParent;
this.Text = Res.AboutText;
_mainTableLayoutPanel.ResumeLayout(false);
_mainTableLayoutPanel.PerformLayout();
((ISupportInitialize)this._logoPictureBox).EndInit();
this.ResumeLayout(false);
}
示例15: InitializeComponent
//.........这里部分代码省略.........
this.WizardPageSwitcher.SelectedTabStripPage = this.TabPageWelcome;
this.WizardPageSwitcher.TabStrip = null;
this.TabPageWelcome.Controls.Add(panel);
manager.ApplyResources(this.TabPageWelcome, "TabPageWelcome");
this.TabPageWelcome.Name = "TabPageWelcome";
this.TabPageProcess.Controls.Add(this.tlpProcess);
this.TabPageProcess.Controls.Add(this.ProcessProgressBar);
this.TabPageProcess.Controls.Add(this.lblProgressUpgrade);
manager.ApplyResources(this.TabPageProcess, "TabPageProcess");
this.TabPageProcess.Name = "TabPageProcess";
manager.ApplyResources(this.tlpProcess, "tlpProcess");
this.tlpProcess.Controls.Add(this.lvProcessDetails, 0, 1);
this.tlpProcess.Controls.Add(this.btnHideDetails, 2, 0);
this.tlpProcess.Controls.Add(this.btnShowDetails, 1, 0);
this.tlpProcess.Name = "tlpProcess";
this.lvProcessDetails.CanResizeColumns = false;
this.lvProcessDetails.Columns.AddRange(new ColumnHeader[] { this.clOperation, this.clStatus });
this.tlpProcess.SetColumnSpan(this.lvProcessDetails, 3);
manager.ApplyResources(this.lvProcessDetails, "lvProcessDetails");
this.lvProcessDetails.FullRowSelect = true;
this.lvProcessDetails.HeaderStyle = ColumnHeaderStyle.Nonclickable;
this.lvProcessDetails.MultiSelect = false;
this.lvProcessDetails.Name = "lvProcessDetails";
this.lvProcessDetails.UseCompatibleStateImageBehavior = false;
this.lvProcessDetails.View = View.Details;
this.lvProcessDetails.ClientSizeChanged += new EventHandler(this.lvProcessDetails_ClientSizeChanged);
manager.ApplyResources(this.clOperation, "clOperation");
manager.ApplyResources(this.clStatus, "clStatus");
manager.ApplyResources(this.btnHideDetails, "btnHideDetails");
this.btnHideDetails.Cursor = Cursors.Hand;
this.btnHideDetails.FlatAppearance.BorderSize = 0;
this.btnHideDetails.Name = "btnHideDetails";
this.btnHideDetails.UseVisualStyleBackColor = false;
this.btnHideDetails.Click += new EventHandler(this.btnShowDetails_Click);
manager.ApplyResources(this.btnShowDetails, "btnShowDetails");
this.btnShowDetails.Cursor = Cursors.Hand;
this.btnShowDetails.FlatAppearance.BorderSize = 0;
this.btnShowDetails.Name = "btnShowDetails";
this.btnShowDetails.UseVisualStyleBackColor = false;
this.btnShowDetails.Click += new EventHandler(this.btnShowDetails_Click);
manager.ApplyResources(this.ProcessProgressBar, "ProcessProgressBar");
this.ProcessProgressBar.Name = "ProcessProgressBar";
this.TabPageImport.Controls.Add(panel2);
manager.ApplyResources(this.TabPageImport, "TabPageImport");
this.TabPageImport.Name = "TabPageImport";
this.TabPageImport.EnabledChanged += new EventHandler(this.TabPageUpgrade_EnabledChanged);
this.TabPageUserConfig.Controls.Add(this.UserConfigControl);
manager.ApplyResources(this.TabPageUserConfig, "TabPageUserConfig");
this.TabPageUserConfig.Name = "TabPageUserConfig";
this.TabPageUserConfig.EnabledChanged += new EventHandler(this.TabPageUserConfig_EnabledChanged);
manager.ApplyResources(this.UserConfigControl, "UserConfigControl");
this.UserConfigControl.Name = "UserConfigControl";
this.UserConfigControl.SaveSettings = false;
manager.ApplyResources(this.bvlButtons, "bvlButtons");
this.bvlButtons.ForeColor = SystemColors.ControlDarkDark;
this.bvlButtons.Name = "bvlButtons";
this.bvlButtons.Sides = Border3DSide.Bottom;
this.bvlButtons.Style = Border3DStyle.Flat;
manager.ApplyResources(this.bvlCaption, "bvlCaption");
this.bvlCaption.ForeColor = SystemColors.ControlDarkDark;
this.bvlCaption.Name = "bvlCaption";
this.bvlCaption.Sides = Border3DSide.Top;
this.bvlCaption.Style = Border3DStyle.Flat;
this.SetupWorker.WorkerReportsProgress = true;
this.SetupWorker.DoWork += new DoWorkEventHandler(this.SetupWorker_DoWork);
this.SetupWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.SetupWorker_RunWorkerCompleted);
this.SetupWorker.ProgressChanged += new ProgressChangedEventHandler(this.SetupWorker_ProgressChanged);
base.AcceptButton = this.btnNext;
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.CancelButton = this.btnCancel;
base.Controls.Add(this.WizardPageSwitcher);
base.Controls.Add(this.bvlCaption);
base.Controls.Add(panel3);
base.Controls.Add(this.bvlButtons);
base.Controls.Add(panel4);
base.FixMouseWheel = true;
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "SetupAndUpgradeDialog";
base.FormClosing += new FormClosingEventHandler(this.SetupAndUpgradeDialog_FormClosing);
panel.ResumeLayout(false);
panel.PerformLayout();
panel2.ResumeLayout(false);
panel2.PerformLayout();
panel3.ResumeLayout(false);
panel4.ResumeLayout(false);
panel4.PerformLayout();
this.WizardPageSwitcher.ResumeLayout(false);
this.TabPageWelcome.ResumeLayout(false);
this.TabPageProcess.ResumeLayout(false);
this.TabPageProcess.PerformLayout();
this.tlpProcess.ResumeLayout(false);
this.tlpProcess.PerformLayout();
this.TabPageImport.ResumeLayout(false);
this.TabPageUserConfig.ResumeLayout(false);
base.ResumeLayout(false);
base.PerformLayout();
}