本文整理汇总了C#中System.Windows.Forms.FlowLayoutPanel.PerformLayout方法的典型用法代码示例。如果您正苦于以下问题:C# FlowLayoutPanel.PerformLayout方法的具体用法?C# FlowLayoutPanel.PerformLayout怎么用?C# FlowLayoutPanel.PerformLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.FlowLayoutPanel
的用法示例。
在下文中一共展示了FlowLayoutPanel.PerformLayout方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PopulatePanel
internal static void PopulatePanel(List<MudData.FormulaAction> actions, FlowLayoutPanel panel, string archetypeName)
{
foreach (var action in actions)
{
var editor = new ScriptActionEditControl(action, archetypeName);
panel.Controls.Add(editor);
}
panel.PerformLayout();
Utilities.ResizeControls(panel);
panel.Refresh();
}
示例2: 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);
}
示例3: InitCheckPanel
//初始化FlowLayoutPanel
void InitCheckPanel(FlowLayoutPanel fpanel, Dictionary<long, string> dic)
{
fpanel.SuspendLayout();
fpanel.Controls.Clear();
foreach (long key in dic.Keys)
{
CheckBox _cbox = new CheckBox();
//_cbox.Name = fpanel.Name + key.ToString("x");
_cbox.Tag = key;//绑定值
_cbox.Text = dic[key];
_cbox.AutoSize = true;
_cbox.Margin = fpanel.Margin;
//_cbox.Click += PanelOnCheckClick;
fpanel.Controls.Add(_cbox);
}
fpanel.ResumeLayout(false);
fpanel.PerformLayout();
}
示例4: InitializeComponent
//.........这里部分代码省略.........
// _pluginsTreeImages
//
this._pluginsTreeImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("_pluginsTreeImages.ImageStream")));
this._pluginsTreeImages.TransparentColor = System.Drawing.Color.Transparent;
this._pluginsTreeImages.Images.SetKeyName(0, "");
this._pluginsTreeImages.Images.SetKeyName(1, "");
//
// _tabControl
//
resources.ApplyResources(this._tabControl, "_tabControl");
this._tabControl.Controls.Add(this._applicationTab);
this._tabControl.Controls.Add(this._hotKeysTab);
this._tabControl.Controls.Add(this._styleTab);
this._tabControl.HotTrack = true;
this._tabControl.Name = "_tabControl";
this._tabControl.SelectedIndex = 0;
//
// _applicationTab
//
this._applicationTab.Controls.Add(this._appPropertyGrid);
resources.ApplyResources(this._applicationTab, "_applicationTab");
this._applicationTab.Name = "_applicationTab";
//
// _appPropertyGrid
//
this._appPropertyGrid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(244)))));
this._appPropertyGrid.CommandsBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(244)))));
resources.ApplyResources(this._appPropertyGrid, "_appPropertyGrid");
this._appPropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(244)))));
this._appPropertyGrid.Name = "_appPropertyGrid";
this._appPropertyGrid.PropertySort = System.Windows.Forms.PropertySort.Categorized;
this._appPropertyGrid.ToolbarVisible = false;
this._appPropertyGrid.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(255)))));
this._appPropertyGrid.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.PropertyGridPropertyValueChanged);
//
// _hotKeysTab
//
resources.ApplyResources(this._hotKeysTab, "_hotKeysTab");
this._hotKeysTab.Name = "_hotKeysTab";
//
// _styleTab
//
this._styleTab.Controls.Add(this.flowLayoutPanel1);
this._styleTab.Controls.Add(this._stylePropertyGrid);
resources.ApplyResources(this._styleTab, "_styleTab");
this._styleTab.Name = "_styleTab";
//
// flowLayoutPanel1
//
resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
this.flowLayoutPanel1.Controls.Add(this._saveSchemeButton);
this.flowLayoutPanel1.Controls.Add(this._loadSchemeButton);
this.flowLayoutPanel1.Name = "flowLayoutPanel1";
//
// _saveSchemeButton
//
resources.ApplyResources(this._saveSchemeButton, "_saveSchemeButton");
this._saveSchemeButton.Name = "_saveSchemeButton";
this._saveSchemeButton.Click += new System.EventHandler(this.SaveSchemeButtonClick);
//
// _loadSchemeButton
//
resources.ApplyResources(this._loadSchemeButton, "_loadSchemeButton");
this._loadSchemeButton.Name = "_loadSchemeButton";
this._loadSchemeButton.Click += new System.EventHandler(this.LoadSchemeButtonClick);
//
// _stylePropertyGrid
//
resources.ApplyResources(this._stylePropertyGrid, "_stylePropertyGrid");
this._stylePropertyGrid.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(244)))));
this._stylePropertyGrid.CommandsBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(244)))));
this._stylePropertyGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(244)))));
this._stylePropertyGrid.Name = "_stylePropertyGrid";
this._stylePropertyGrid.PropertySort = System.Windows.Forms.PropertySort.Categorized;
this._stylePropertyGrid.ToolbarVisible = false;
this._stylePropertyGrid.ViewBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(244)))), ((int)(((byte)(255)))));
//
// OptionsForm
//
this.AcceptButton = this._okButton;
this.CancelButton = this._cancelButton;
resources.ApplyResources(this, "$this");
this.Controls.Add(_lytButtons);
this.Controls.Add(this._tabControl);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "OptionsForm";
this.ShowInTaskbar = false;
_lytButtons.ResumeLayout(false);
_lytButtons.PerformLayout();
this._tabControl.ResumeLayout(false);
this._applicationTab.ResumeLayout(false);
this._styleTab.ResumeLayout(false);
this._styleTab.PerformLayout();
this.flowLayoutPanel1.ResumeLayout(false);
this.flowLayoutPanel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
示例5: InitializeComponent
//.........这里部分代码省略.........
this.pnlAttributes.Controls.Add(label9);
this.pnlAttributes.Controls.Add(this.chkArchive);
this.pnlAttributes.Name = "pnlAttributes";
manager.ApplyResources(this.chkEncrypted, "chkEncrypted");
this.chkEncrypted.Name = "chkEncrypted";
this.chkEncrypted.ThreeState = true;
this.chkEncrypted.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkCompressed, "chkCompressed");
this.chkCompressed.Name = "chkCompressed";
this.chkCompressed.ThreeState = true;
this.chkCompressed.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkSystem, "chkSystem");
this.chkSystem.Name = "chkSystem";
this.chkSystem.ThreeState = true;
this.chkSystem.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkReadOnly, "chkReadOnly");
this.chkReadOnly.Name = "chkReadOnly";
this.chkReadOnly.ThreeState = true;
this.chkReadOnly.UseVisualStyleBackColor = true;
manager.ApplyResources(this.chkHidden, "chkHidden");
this.chkHidden.Name = "chkHidden";
this.chkHidden.ThreeState = true;
this.chkHidden.UseVisualStyleBackColor = true;
manager.ApplyResources(label9, "label16");
label9.Name = "label16";
manager.ApplyResources(this.chkArchive, "chkArchive");
this.chkArchive.Name = "chkArchive";
this.chkArchive.ThreeState = true;
this.chkArchive.UseVisualStyleBackColor = true;
this.tabControlProperties.Controls.Add(this.tabPageProperties);
manager.ApplyResources(this.tabControlProperties, "tabControlProperties");
this.tabControlProperties.Name = "tabControlProperties";
this.tabControlProperties.SelectedIndex = 0;
this.tabControlProperties.Selecting += new TabControlCancelEventHandler(this.tabControlProperties_Selecting);
this.tabPageProperties.Controls.Add(panel);
manager.ApplyResources(this.tabPageProperties, "tabPageProperties");
this.tabPageProperties.Name = "tabPageProperties";
this.tabPageProperties.UseVisualStyleBackColor = true;
manager.ApplyResources(this.btnApply, "btnApply");
this.btnApply.Name = "btnApply";
this.btnApply.UseVisualStyleBackColor = true;
this.btnApply.Click += new EventHandler(this.btnApply_Click);
this.tmrUpdateSize.Tick += new EventHandler(this.tmrUpdateSize_Tick);
this.tsbStop.DisplayStyle = ToolStripItemDisplayStyle.Image;
manager.ApplyResources(this.tsbStop, "tsbStop");
this.tsbStop.Image = Resources.ImageThrobber;
this.tsbStop.Name = "tsbStop";
this.tsbStop.EnabledChanged += new EventHandler(this.tsbStop_EnabledChanged);
this.tsbStop.Click += new EventHandler(this.tsbStop_Click);
this.btnCancel.DialogResult = DialogResult.Cancel;
manager.ApplyResources(this.btnCancel, "btnCancel");
this.btnCancel.Name = "btnCancel";
this.btnCancel.UseVisualStyleBackColor = true;
manager.ApplyResources(this.btnOk, "btnOk");
this.btnOk.Name = "btnOk";
this.btnOk.UseVisualStyleBackColor = true;
this.btnOk.Click += new EventHandler(this.btnOk_Click);
base.AcceptButton = this.btnOk;
manager.ApplyResources(this, "$this");
base.AutoScaleMode = AutoScaleMode.Font;
base.CancelButton = this.btnCancel;
base.Controls.Add(this.btnOk);
base.Controls.Add(this.btnCancel);
base.Controls.Add(this.btnApply);
base.Controls.Add(this.tabControlProperties);
base.FormBorderStyle = FormBorderStyle.FixedDialog;
base.MaximizeBox = false;
base.MinimizeBox = false;
base.Name = "PropertiesDialog";
base.ShowInTaskbar = false;
base.Load += new EventHandler(this.PropertiesDialog_Load);
base.Shown += new EventHandler(this.PropertiesDialog_Shown);
base.FormClosed += new FormClosedEventHandler(this.PropertiesDialog_FormClosed);
panel.ResumeLayout(false);
panel.PerformLayout();
this.pnlItemName.ResumeLayout(false);
this.pnlItemName.PerformLayout();
((ISupportInitialize) this.imgIcon).EndInit();
this.pnlType.ResumeLayout(false);
this.pnlType.PerformLayout();
this.pnlLocation.ResumeLayout(false);
this.pnlLocation.PerformLayout();
this.pnlSize.ResumeLayout(false);
this.pnlSize.PerformLayout();
this.pnlCompressedSize.ResumeLayout(false);
this.pnlCompressedSize.PerformLayout();
this.pnlContains.ResumeLayout(false);
this.pnlContains.PerformLayout();
this.pnlCreationTime.ResumeLayout(false);
this.pnlCreationTime.PerformLayout();
this.pnlLastWriteTime.ResumeLayout(false);
this.pnlLastWriteTime.PerformLayout();
this.pnlLastAccessTime.ResumeLayout(false);
this.pnlLastAccessTime.PerformLayout();
this.pnlAttributes.ResumeLayout(false);
this.pnlAttributes.PerformLayout();
this.tabControlProperties.ResumeLayout(false);
this.tabPageProperties.ResumeLayout(false);
base.ResumeLayout(false);
}
示例6: InitializeComponent
//.........这里部分代码省略.........
changelogLink.TabStop = true;
changelogLink.Text = "Changelog";
changelogLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
bugLink.AutoSize = true;
bugLink.Location = new Point(8, 78);
bugLink.Name = "bugLink";
bugLink.Size = new Size(61, 13);
bugLink.TabIndex = 2;
bugLink.TabStop = true;
bugLink.Text = "Bug reports";
bugLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
scriptsLink.AutoSize = true;
scriptsLink.Location = new Point(8, 34);
scriptsLink.Name = "scriptsLink";
scriptsLink.Size = new Size(68, 13);
scriptsLink.TabIndex = 1;
scriptsLink.TabStop = true;
scriptsLink.Text = "Scripts forum";
scriptsLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
installLink.AutoSize = true;
installLink.Location = new Point(8, 12);
installLink.Name = "installLink";
installLink.Size = new Size(86, 13);
installLink.TabIndex = 0;
installLink.TabStop = true;
installLink.Text = "Installation guide";
installLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
dotaFindTimer.Interval = 125;
dotaFindTimer.Tick += new EventHandler(dotaFindTimer_Tick);
taskbarIcon.Icon = (Icon)componentResourceManager.GetObject("taskbarIcon.Icon");
taskbarIcon.Text = "Ensage";
taskbarIcon.Visible = true;
taskbarIcon.Click += new EventHandler(notifyIcon1_Click);
injectWorker.WorkerReportsProgress = true;
injectWorker.DoWork += new DoWorkEventHandler(injectWorker_DoWork);
injectWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(injectWorker_RunWorkerCompleted);
pipeWorker.WorkerReportsProgress = true;
pipeWorker.DoWork += new DoWorkEventHandler(pipeWorker_DoWork);
pipeWorker.ProgressChanged += new ProgressChangedEventHandler(pipeWorker_ProgressChanged);
serverWorker.DoWork += new DoWorkEventHandler(serverWorker_DoWork);
updateTimer.Interval = 60000;
updateTimer.Tick += new EventHandler(updateTimer_Tick);
loadWorker.WorkerReportsProgress = true;
loadWorker.DoWork += new DoWorkEventHandler(loadWorker_DoWork);
loadWorker.ProgressChanged += new ProgressChangedEventHandler(loadWorker_ProgressChanged);
DisableVAC.AutoSize = true;
DisableVAC.Location = new Point(11, 151);
DisableVAC.Name = "DisableVAC";
DisableVAC.Size = new Size(103, 17);
DisableVAC.TabIndex = 9;
DisableVAC.Text = "disable anti-VAC";
DisableVAC.UseVisualStyleBackColor = true;
AutoScaleDimensions = new SizeF(6f, 13f);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(683, 428);
Controls.Add(tabControl1);
Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
MinimumSize = new Size(683, 428);
Name = "Main";
Text = "Ensage - Main";
FormClosing += new FormClosingEventHandler(Main_FormClosing);
Shown += new EventHandler(Main_Shown);
Resize += new EventHandler(Main_Resize);
tabControl1.ResumeLayout(false);
mainPage.ResumeLayout(false);
mainPage.PerformLayout();
groupBox1.ResumeLayout(false);
chatPage.ResumeLayout(false);
ircTabControl.ResumeLayout(false);
tabPage1.ResumeLayout(false);
splitContainer1.Panel1.ResumeLayout(false);
splitContainer1.Panel1.PerformLayout();
splitContainer1.Panel2.ResumeLayout(false);
splitContainer1.EndInit();
splitContainer1.ResumeLayout(false);
tabPage2.ResumeLayout(false);
splitContainer2.Panel1.ResumeLayout(false);
splitContainer2.Panel2.ResumeLayout(false);
splitContainer2.EndInit();
splitContainer2.ResumeLayout(false);
splitContainer3.Panel1.ResumeLayout(false);
splitContainer3.Panel2.ResumeLayout(false);
splitContainer3.EndInit();
splitContainer3.ResumeLayout(false);
flowLayoutPanel1.ResumeLayout(false);
flowLayoutPanel1.PerformLayout();
scriptsPage.ResumeLayout(false);
((ISupportInitialize)scriptsDataGrid).EndInit();
((ISupportInitialize)listBinding).EndInit();
scriptConfigPage.ResumeLayout(false);
repository.ResumeLayout(false);
tableLayoutPanel1.ResumeLayout(false);
tableLayoutPanel2.ResumeLayout(false);
tableLayoutPanel3.ResumeLayout(false);
tableLayoutPanel3.PerformLayout();
configPage.ResumeLayout(false);
helpPage.ResumeLayout(false);
helpPage.PerformLayout();
ResumeLayout(false);
}
示例7: Main
//.........这里部分代码省略.........
textBoxOutput.ReadOnly = true;
textBoxOutput.Size = new Size(363, 150);
textBoxOutput.TabIndex = 1;
//
// statusStrip1
//
statusStrip.Items.AddRange(new ToolStripItem[] {statusLabel});
statusStrip.Location = new Point(0, 238);
statusStrip.Name = "statusStrip1";
statusStrip.Size = new Size(363, 22);
statusStrip.TabIndex = 2;
statusStrip.Text = "statusStrip1";
//
// toolStripStatusLabel1
//
statusLabel.Name = "toolStripStatusLabel1";
statusLabel.Size = new Size(29, 17);
statusLabel.Spring = true;
statusLabel.TextAlign = ContentAlignment.MiddleLeft;
//
// Form1
//
form.AutoScaleDimensions = new SizeF(6F, 12F);
form.AutoScaleMode = AutoScaleMode.Font;
form.ClientSize = new Size(363, 260);
form.Controls.Add(statusStrip);
form.Controls.Add(panelFill);
form.Controls.Add(flowLayoutPanelTop);
form.Name = "Form1";
form.Text = "二进制打印";
form.StartPosition = FormStartPosition.CenterScreen;
form.ImeMode = ImeMode.On;
flowLayoutPanelTop.ResumeLayout(false);
flowLayoutPanelTop.PerformLayout();
panelFill.ResumeLayout(false);
panelFill.PerformLayout();
statusStrip.ResumeLayout(false);
statusStrip.PerformLayout();
form.ResumeLayout(false);
form.PerformLayout();
}
radioButtonText.Click += (o, e) =>
{
textBoxInput.Text = "";
textBoxOutput.Text = "";
var commonUse = new List<string>();
commonUse.Add(Encoding.Unicode.WebName);
commonUse.Add(Encoding.UTF8.WebName);
commonUse.Add(Encoding.Default.WebName);
commonUse.Add(Encoding.UTF7.WebName);
commonUse.Add(Encoding.UTF32.WebName);
var fullList = Encoding.GetEncodings().Select(i=>i.GetEncoding().WebName);
comboBox.DataSource = commonUse.Concat(fullList.Except(commonUse)).ToArray();
};
radioButtonNumber.Click += (o, e) =>
{
textBoxInput.Text = "";
textBoxOutput.Text = "";
comboBox.DataSource = new string[] { "unsigned oct", "signed oct", "hex", };
};
示例8: InitializeComponent
//.........这里部分代码省略.........
lytButtons.SuspendLayout();
this._panelBlack.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this._janusPicture)).BeginInit();
this.SuspendLayout();
//
// lytButtons
//
resources.ApplyResources(lytButtons, "lytButtons");
lytButtons.Controls.Add(this._asmButton);
lytButtons.Controls.Add(btnComponents);
lytButtons.Controls.Add(btnDevelopers);
lytButtons.Controls.Add(this._okButton);
lytButtons.Name = "lytButtons";
//
// _asmButton
//
resources.ApplyResources(this._asmButton, "_asmButton");
this._asmButton.Name = "_asmButton";
this._asmButton.Click += new System.EventHandler(this.ButtonAssemblyInfoClick);
//
// btnComponents
//
resources.ApplyResources(btnComponents, "btnComponents");
btnComponents.Name = "btnComponents";
btnComponents.Click += new System.EventHandler(this.ButtonShowComponentsClick);
//
// btnDevelopers
//
resources.ApplyResources(btnDevelopers, "btnDevelopers");
btnDevelopers.Name = "btnDevelopers";
btnDevelopers.Click += new System.EventHandler(this.ButtonShowDevelopersClick);
//
// _okButton
//
resources.ApplyResources(this._okButton, "_okButton");
this._okButton.BackColor = System.Drawing.SystemColors.Control;
this._okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this._okButton.Name = "_okButton";
this._okButton.UseVisualStyleBackColor = false;
//
// _panelBlack
//
resources.ApplyResources(this._panelBlack, "_panelBlack");
this._panelBlack.BackColor = System.Drawing.Color.Black;
this._panelBlack.Controls.Add(this._janusPicture);
this._panelBlack.Name = "_panelBlack";
//
// _janusPicture
//
resources.ApplyResources(this._janusPicture, "_janusPicture");
this._janusPicture.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this._janusPicture.Name = "_janusPicture";
this._janusPicture.TabStop = false;
//
// _titleLabel
//
resources.ApplyResources(this._titleLabel, "_titleLabel");
this._titleLabel.BackColor = System.Drawing.Color.Black;
this._titleLabel.ForeColor = System.Drawing.Color.White;
this._titleLabel.Name = "_titleLabel";
//
// _versionLabel
//
resources.ApplyResources(this._versionLabel, "_versionLabel");
this._versionLabel.BackColor = System.Drawing.Color.Black;
this._versionLabel.ForeColor = System.Drawing.Color.White;
this._versionLabel.Name = "_versionLabel";
//
// _webBrowser
//
resources.ApplyResources(this._webBrowser, "_webBrowser");
this._webBrowser.Name = "_webBrowser";
//
// _fadeTimer
//
this._fadeTimer.Interval = 70;
this._fadeTimer.Tick += new System.EventHandler(this.FadeTimerTick);
//
// AboutJanusForm
//
this.AcceptButton = this._okButton;
this.BackColor = System.Drawing.SystemColors.Control;
this.CancelButton = this._okButton;
resources.ApplyResources(this, "$this");
this.Controls.Add(lytButtons);
this.Controls.Add(this._webBrowser);
this.Controls.Add(this._versionLabel);
this.Controls.Add(this._titleLabel);
this.Controls.Add(this._panelBlack);
this.Name = "AboutJanusForm";
this.ShowInTaskbar = false;
this.Closing += new System.ComponentModel.CancelEventHandler(this.AboutJanusForm_Closing);
lytButtons.ResumeLayout(false);
lytButtons.PerformLayout();
this._panelBlack.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this._janusPicture)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
示例9: InitializeComponent
//.........这里部分代码省略.........
//
// ThumbnailsList
//
this.ThumbnailsList.BackColor = System.Drawing.SystemColors.Window;
this.ThumbnailsList.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.ThumbnailsList.FormattingEnabled = true;
this.ThumbnailsList.IntegralHeight = false;
this.ThumbnailsList.Location = new System.Drawing.Point(3, 18);
this.ThumbnailsList.Name = "ThumbnailsList";
this.ThumbnailsList.Size = new System.Drawing.Size(240, 100);
this.ThumbnailsList.TabIndex = 28;
this.ThumbnailsList.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.ThumbnailsList_ItemCheck_Handler);
//
// ThumbnailsListLabel
//
ThumbnailsListLabel.AutoSize = true;
ThumbnailsListLabel.Location = new System.Drawing.Point(3, 0);
ThumbnailsListLabel.Name = "ThumbnailsListLabel";
ThumbnailsListLabel.Size = new System.Drawing.Size(162, 13);
ThumbnailsListLabel.TabIndex = 29;
ThumbnailsListLabel.Text = "Thumbnails (check to force hide)";
//
// ForumLinkLabel
//
this.ForumLinkLabel.AutoSize = true;
this.ForumLinkLabel.Location = new System.Drawing.Point(3, 448);
this.ForumLinkLabel.Name = "ForumLinkLabel";
this.ForumLinkLabel.Size = new System.Drawing.Size(241, 26);
this.ForumLinkLabel.TabIndex = 10;
this.ForumLinkLabel.TabStop = true;
this.ForumLinkLabel.Text = "to be set from prresenter to be set from prresenter to be set from prresenter to " +
"be set from prresenter";
this.ForumLinkLabel.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.ForumLinkLabelClicked_Handler);
//
// TitleMenuItem
//
TitleMenuItem.Enabled = false;
TitleMenuItem.Name = "TitleMenuItem";
TitleMenuItem.Size = new System.Drawing.Size(151, 22);
TitleMenuItem.Text = "EVE-O Preview";
//
// SeparatorMenuItem
//
SeparatorMenuItem.Name = "SeparatorMenuItem";
SeparatorMenuItem.Size = new System.Drawing.Size(148, 6);
//
// NotifyIcon
//
this.NotifyIcon.ContextMenuStrip = this.TrayMenu;
this.NotifyIcon.Icon = ((System.Drawing.Icon)(resources.GetObject("NotifyIcon.Icon")));
this.NotifyIcon.Text = "EVE-O Preview";
this.NotifyIcon.Visible = true;
this.NotifyIcon.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.RestoreMainForm_Handler);
//
// TrayMenu
//
this.TrayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
TitleMenuItem,
RestoreWindowMenuItem,
SeparatorMenuItem,
ExitMenuItem});
this.TrayMenu.Name = "contextMenuStrip1";
this.TrayMenu.Size = new System.Drawing.Size(152, 76);
//
// MainForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.ControlDarkDark;
this.ClientSize = new System.Drawing.Size(252, 487);
this.Controls.Add(ContentFlowLayoutPanel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(0);
this.MaximizeBox = false;
this.Name = "MainForm";
this.Text = "EVE-O Preview";
this.TopMost = true;
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainFormClosing_Handler);
this.Load += new System.EventHandler(this.MainFormResize_Handler);
this.Resize += new System.EventHandler(this.MainFormResize_Handler);
ContentFlowLayoutPanel.ResumeLayout(false);
ContentFlowLayoutPanel.PerformLayout();
OpacityPanel.ResumeLayout(false);
OpacityPanel.PerformLayout();
ResizeOptionsPanel.ResumeLayout(false);
ResizeOptionsPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.ThumbnailsWidthNumericEdit)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.ThumbnailsHeightNumericEdit)).EndInit();
ZoomOptionsPanel.ResumeLayout(false);
ZoomOptionsPanel.PerformLayout();
this.ZoomAnchorPanel.ResumeLayout(false);
this.ZoomAnchorPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.ThumbnailZoomFactorNumericEdit)).EndInit();
ThumbnailsListPanel.ResumeLayout(false);
ThumbnailsListPanel.PerformLayout();
this.TrayMenu.ResumeLayout(false);
this.ResumeLayout(false);
}