本文整理汇总了C#中System.Windows.Forms.TabPage.PerformLayout方法的典型用法代码示例。如果您正苦于以下问题:C# TabPage.PerformLayout方法的具体用法?C# TabPage.PerformLayout怎么用?C# TabPage.PerformLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.TabPage
的用法示例。
在下文中一共展示了TabPage.PerformLayout方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InitializeComponent
//.........这里部分代码省略.........
applicationsTab.Size = new System.Drawing.Size(534,387);
applicationsTab.TabIndex = 0;
applicationsTab.Text = "Applications";
//
// applicationPictureBox
//
applicationPictureBox.AutoSize = true;
applicationPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
applicationPictureBox.Image = CredentialsManagerClient.Properties.Resources.Security;
applicationPictureBox.Location = new System.Drawing.Point(447,15);
applicationPictureBox.Name = "applicationPictureBox";
applicationPictureBox.Size = new System.Drawing.Size(79,79);
applicationPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
applicationPictureBox.TabIndex = 12;
applicationPictureBox.TabStop = false;
//
// tabControl
//
tabControl.Controls.Add(applicationsTab);
tabControl.Controls.Add(usersPage);
tabControl.Controls.Add(rolesPage);
tabControl.Controls.Add(passwordsPage);
tabControl.Controls.Add(servicePage);
tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
tabControl.Location = new System.Drawing.Point(0,24);
tabControl.Name = "tabControl";
tabControl.SelectedIndex = 0;
tabControl.Size = new System.Drawing.Size(542,413);
tabControl.TabIndex = 0;
//
// servicePage
//
servicePage.Controls.Add(addressGroupBox);
servicePage.Controls.Add(this.m_AddressLabel);
servicePage.Location = new System.Drawing.Point(4,22);
servicePage.Name = "servicePage";
servicePage.Size = new System.Drawing.Size(534,387);
servicePage.TabIndex = 4;
servicePage.Text = "Credentials Service";
//
// m_AddressLabel
//
this.m_AddressLabel.AutoSize = true;
this.m_AddressLabel.Location = new System.Drawing.Point(8,11);
this.m_AddressLabel.Name = "m_AddressLabel";
this.m_AddressLabel.Size = new System.Drawing.Size(0,0);
this.m_AddressLabel.TabIndex = 2;
//
// columnHeader1
//
this.columnHeader1.Text = "";
this.columnHeader1.Width = 186;
//
// CredentialsManagerForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F,13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.ClientSize = new System.Drawing.Size(542,437);
this.Controls.Add(tabControl);
this.Controls.Add(mainMenu);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = mainMenu;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "CredentialsManagerForm";
this.Text = " IDesign ASP.NET Credentials Manager";
this.Load += new System.EventHandler(this.OnLoad);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.OnClosed);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnClosing);
passwordSetupGroupBox.ResumeLayout(false);
passwordSetupGroupBox.PerformLayout();
generatePassorgGroupBox.ResumeLayout(false);
generatePassorgGroupBox.PerformLayout();
usersGroupBox.ResumeLayout(false);
usersGroupBox.PerformLayout();
rolesGroupBox.ResumeLayout(false);
rolesGroupBox.PerformLayout();
usersStatus.ResumeLayout(false);
usersStatus.PerformLayout();
usersGoupBox.ResumeLayout(false);
usersGoupBox.PerformLayout();
applicationsGroupBox.ResumeLayout(false);
addressGroupBox.ResumeLayout(false);
addressGroupBox.PerformLayout();
mainMenu.ResumeLayout(false);
passwordsPage.ResumeLayout(false);
rolesPage.ResumeLayout(false);
usersPage.ResumeLayout(false);
applicationsTab.ResumeLayout(false);
applicationsTab.PerformLayout();
((System.ComponentModel.ISupportInitialize)(applicationPictureBox)).EndInit();
tabControl.ResumeLayout(false);
servicePage.ResumeLayout(false);
servicePage.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
示例2: InitializeComponent
//.........这里部分代码省略.........
//
resources.ApplyResources(this.m_btnOK, "m_btnOK");
this.helpProvider1.SetHelpString(this.m_btnOK, resources.GetString("m_btnOK.HelpString"));
this.m_btnOK.Name = "m_btnOK";
this.helpProvider1.SetShowHelp(this.m_btnOK, ((bool)(resources.GetObject("m_btnOK.ShowHelp"))));
this.m_btnOK.Click += new System.EventHandler(this.m_btnOK_Click);
//
// m_tabControl
//
this.m_tabControl.Controls.Add(m_tpGeneral);
this.m_tabControl.Controls.Add(m_tpWritingSystems);
this.m_tabControl.Controls.Add(m_tpExternalLinks);
resources.ApplyResources(this.m_tabControl, "m_tabControl");
this.m_tabControl.Name = "m_tabControl";
this.m_tabControl.SelectedIndex = 0;
this.helpProvider1.SetShowHelp(this.m_tabControl, ((bool)(resources.GetObject("m_tabControl.ShowHelp"))));
//
// m_cmnuAddWs
//
this.m_cmnuAddWs.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {this.menuItem2});
this.m_cmnuAddWs.Name = "m_cmnuAddWs";
resources.ApplyResources(this.m_cmnuAddWs, "m_cmnuAddWs");
//
// menuItem2
//
this.menuItem2.Name = "menuItem2";
resources.ApplyResources(this.menuItem2, "menuItem2");
//
// m_wsMenuStrip
//
this.m_wsMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[]
{
this.m_modifyMenuItem,
this.m_hideMenuItem,
this.m_mergeMenuItem,
this.m_deleteMenuItem
});
this.m_wsMenuStrip.Name = "m_wsMenuStrip";
resources.ApplyResources(this.m_wsMenuStrip, "m_wsMenuStrip");
//
// m_modifyMenuItem
//
this.m_modifyMenuItem.Name = "m_modifyMenuItem";
resources.ApplyResources(this.m_modifyMenuItem, "m_modifyMenuItem");
this.m_modifyMenuItem.Click += new System.EventHandler(this.m_modifyMenuItem_Click);
//
// m_hideMenuItem
//
this.m_hideMenuItem.Name = "m_hideMenuItem";
resources.ApplyResources(this.m_hideMenuItem, "m_hideMenuItem");
this.m_hideMenuItem.Click += new System.EventHandler(this.m_hideMenuItem_Click);
//
// m_mergeMenuItem
//
this.m_mergeMenuItem.Name = "m_mergeMenuItem";
resources.ApplyResources(this.m_mergeMenuItem, "m_mergeMenuItem");
this.m_mergeMenuItem.Click += new System.EventHandler(this.m_mergeMenuItem_Click);
//
// m_deleteMenuItem
//
this.m_deleteMenuItem.Name = "m_deleteMenuItem";
resources.ApplyResources(this.m_deleteMenuItem, "m_deleteMenuItem");
this.m_deleteMenuItem.Click += new System.EventHandler(this.m_deleteMenuItem_Click);
//
// linkLbl_useDefaultFolder
//
resources.ApplyResources(this.linkLbl_useDefaultFolder, "linkLbl_useDefaultFolder");
this.linkLbl_useDefaultFolder.Name = "linkLbl_useDefaultFolder";
this.linkLbl_useDefaultFolder.TabStop = true;
this.linkLbl_useDefaultFolder.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLbl_useDefaultFolder_LinkClicked);
//
// FwProjPropertiesDlg
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = m_btnCancel;
this.Controls.Add(this.m_tabControl);
this.Controls.Add(m_btnCancel);
this.Controls.Add(m_btnHelp);
this.Controls.Add(this.m_btnOK);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.helpProvider1.SetHelpString(this, global::SIL.FieldWorks.FwCoreDlgs.FwCoreDlgs.kstidOpen);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FwProjPropertiesDlg";
this.helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp"))));
this.ShowInTaskbar = false;
m_tpGeneral.ResumeLayout(false);
m_tpGeneral.PerformLayout();
((System.ComponentModel.ISupportInitialize)(m_picLangProgFileBox)).EndInit();
m_tpWritingSystems.ResumeLayout(false);
m_tpWritingSystems.PerformLayout();
m_tpExternalLinks.ResumeLayout(false);
m_tpExternalLinks.PerformLayout();
this.m_tabControl.ResumeLayout(false);
this.m_cmnuAddWs.ResumeLayout(false);
this.m_wsMenuStrip.ResumeLayout(false);
this.ResumeLayout(false);
}
示例3: InitializeComponent
//.........这里部分代码省略.........
tabPageA_Path.Size = new Size(0x1ff, 0x1d7);
tabPageA_Path.TabIndex = 2;
tabPageA_Path.UseVisualStyleBackColor = true;
listView_NoCapture.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Top;
listView_NoCapture.Columns.AddRange(new ColumnHeader[] { clmnHeader_NoCapture });
listView_NoCapture.HeaderStyle = ColumnHeaderStyle.Nonclickable;
listView_NoCapture.HideSelection = false;
listView_NoCapture.LabelEdit = true;
listView_NoCapture.Location = new Point(5, 0x2d);
listView_NoCapture.Size = new Size(0x1ed, 0xa3);
listView_NoCapture.FullRowSelect = true;
listView_NoCapture.TabIndex = 8;
listView_NoCapture.UseCompatibleStateImageBehavior = false;
listView_NoCapture.View = View.Details;
listView_NoCapture.ItemActivate += listView_NoCapture_ItemActivate;
listView_NoCapture.SelectedIndexChanged += listView_NoCapture_SelectedIndexChanged;
listView_NoCapture.KeyDown += listView_NoCapture_KeyDown;
listView_NoCapture.BeforeLabelEdit += listView_NoCapture_BeforeLabelEdit;
listView_NoCapture.AfterLabelEdit += listView_NoCapture_AfterLabelEdit;
clmnHeader_NoCapture.Width = 0x1d8;
btnOFD_NoCapture.Anchor = AnchorStyles.Right | AnchorStyles.Top;
btnOFD_NoCapture.Location = new Point(0x19b, 0x10);
btnOFD_NoCapture.Size = new Size(0x19, 0x17);
btnOFD_NoCapture.TabIndex = 0;
btnOFD_NoCapture.Text = "...";
btnOFD_NoCapture.UseVisualStyleBackColor = true;
btnOFD_NoCapture.Click += btnOFD_NoCapture_Click;
btnAdd_NoCapture.Anchor = AnchorStyles.Right | AnchorStyles.Top;
btnAdd_NoCapture.Location = new Point(0x1ba, 0x10);
btnAdd_NoCapture.Size = new Size(0x19, 0x17);
btnAdd_NoCapture.TabIndex = 1;
btnAdd_NoCapture.Text = "+";
btnAdd_NoCapture.UseVisualStyleBackColor = true;
btnAdd_NoCapture.Click += btnAdd_NoCapture_Click;
btnRemove_NoCapture.Anchor = AnchorStyles.Right | AnchorStyles.Top;
btnRemove_NoCapture.Enabled = false;
btnRemove_NoCapture.Location = new Point(0x1d9, 0x10);
btnRemove_NoCapture.Size = new Size(0x19, 0x17);
btnRemove_NoCapture.TabIndex = 2;
btnRemove_NoCapture.Text = "-";
btnRemove_NoCapture.UseVisualStyleBackColor = true;
btnRemove_NoCapture.Click += btnRemove_NoCapture_Click;
cmbSpclFol_NoCapture.Anchor = AnchorStyles.Left | AnchorStyles.Top;
cmbSpclFol_NoCapture.DropDownStyle = ComboBoxStyle.DropDownList;
cmbSpclFol_NoCapture.Location = new Point(5, 0xd4);
cmbSpclFol_NoCapture.Size = new Size(150, 0x15);
cmbSpclFol_NoCapture.TabIndex = 3;
btnAddSpcFol_NoCapture.Anchor = AnchorStyles.Left | AnchorStyles.Top;
btnAddSpcFol_NoCapture.Location = new Point(0x9e, 0xd3);
btnAddSpcFol_NoCapture.Size = new Size(0x19, 0x17);
btnAddSpcFol_NoCapture.Text = "+";
btnAddSpcFol_NoCapture.TabIndex = 4;
btnAddSpcFol_NoCapture.Click += btnAddSpcFol_NoCapture_Click;
AutoScaleDimensions = new SizeF(6f, 13f);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(0x211, 0x269);
MinimumSize = new Size(0x221, 0x28e);
Controls.Add(tabControl1);
Controls.Add(lblVer);
Controls.Add(btnOK);
Controls.Add(btnCancel);
Controls.Add(btnApply);
MaximizeBox = false;
ShowIcon = false;
StartPosition = FormStartPosition.CenterParent;
Text = "QTTabBar Options";
FormClosing += OptionsDialog_FormClosing;
tabControl1.ResumeLayout(false);
tabPage1_Gnrl.ResumeLayout(false);
tabPage1_Gnrl.PerformLayout();
tabPage2_Tabs.ResumeLayout(false);
tabPage2_Tabs.PerformLayout();
tabPage3_Wndw.ResumeLayout(false);
tabPage3_Wndw.PerformLayout();
tabPage4_View.ResumeLayout(false);
tabPage4_View.PerformLayout();
tabPage5_Grps.ResumeLayout(false);
tabPage5_Grps.PerformLayout();
tabPage6_Apps.ResumeLayout(false);
tabPage6_Apps.PerformLayout();
tabPage7_Plug.ResumeLayout(false);
tabPage7_Plug.PerformLayout();
tabPage8_Keys.ResumeLayout(false);
tabPage8_Keys.PerformLayout();
tabPage9_Misc.ResumeLayout(false);
tabPage9_Misc.PerformLayout();
tabPageA_Path.ResumeLayout(false);
tabPageA_Path.PerformLayout();
nudMaxRecentFile.EndInit();
nudMaxUndo.EndInit();
nudNetworkTimeOut.EndInit();
nudTabWidthMin.EndInit();
nudTabWidthMax.EndInit();
nudTabHeight.EndInit();
nudTabWidth.EndInit();
nudPreviewMaxHeight.EndInit();
nudPreviewMaxWidth.EndInit();
ResumeLayout(false);
PerformLayout();
}
示例4: newTabToolStripMenuItem_Click
private void newTabToolStripMenuItem_Click(object sender, EventArgs e)
{
TabPage tb = new TabPage();
TextBox tx = new TextBox();
tx.Font = MaintextBox.Font;
tx.ScrollBars = ScrollBars.Both;
tx.TextChanged += (MaintextBox_TextChanged_1);
tx.Dock = DockStyle.Fill;
tx.Multiline = true;
tb.Text = "untitled";
tb.Controls.Add(tx);
tabControl.Controls.Add(tb);
tb.BringToFront();
tb.Select();
tb.PerformLayout();
}
示例5: openToolStripMenuItem_Click
private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFileDialog op = new OpenFileDialog();
op.Filter = filter.ToString();
if (op.ShowDialog() == DialogResult.OK)
{
if (((TextBox)tabControl.SelectedTab.Controls[0]).Text.Length > 0)
{
TabPage tb = new TabPage();
TextBox tx = new TextBox();
tx.Font = MaintextBox.Font;
tx.ScrollBars = ScrollBars.Both;
tx.TextChanged += (MaintextBox_TextChanged_1);
tx.Dock = DockStyle.Fill;
tx.Multiline = true;
tb.Text = "untitled";
tb.Controls.Add(tx);
tabControl.Controls.Add(tb);
tb.BringToFront();
tb.Select();
tb.PerformLayout();
using (System.IO.StreamReader sr = new System.IO.StreamReader(op.FileName))
{
tx.Text = (sr.ReadToEnd());
sr.Dispose();
}
}
else
{
using (System.IO.StreamReader sr = new System.IO.StreamReader(op.FileName))
{
((TextBox)tabControl.SelectedTab.Controls[0]).Text = (sr.ReadToEnd());
tabControl.SelectedTab.Text = op.FileName;
sr.Dispose();
}
}
}
}
示例6: RefreshTabs
private void RefreshTabs()
{
// bugfix for tab removal, RemoveAt fails sometimes
tabControl1.TabPages.Clear();
tabControl1.TabPages.Add(tabPage1);
IList<ChannelGroup> groups = ChannelGroup.ListAll();
foreach (ChannelGroup group in groups)
{
TabPage page = new TabPage(group.GroupName);
page.SuspendLayout();
ChannelsInGroupControl channelsInRadioGroupControl = new ChannelsInGroupControl();
channelsInRadioGroupControl.Location = new System.Drawing.Point(9, 9);
channelsInRadioGroupControl.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
| AnchorStyles.Left)
| AnchorStyles.Right;
page.Controls.Add(channelsInRadioGroupControl);
page.Tag = group;
page.Location = new System.Drawing.Point(4, 22);
page.Padding = new Padding(3);
page.Size = new System.Drawing.Size(457, 374);
page.UseVisualStyleBackColor = true;
page.PerformLayout();
page.ResumeLayout(false);
tabControl1.TabPages.Add(page);
}
}
示例7: InitializeComponent
//.........这里部分代码省略.........
//
resources.ApplyResources(lblSimilarWSDesc, "lblSimilarWSDesc");
lblSimilarWSDesc.Name = "lblSimilarWSDesc";
this.helpProvider1.SetShowHelp(lblSimilarWSDesc, ((bool)(resources.GetObject("lblSimilarWSDesc.ShowHelp"))));
//
// lblSimilarWS
//
resources.ApplyResources(lblSimilarWS, "lblSimilarWS");
lblSimilarWS.Name = "lblSimilarWS";
this.helpProvider1.SetShowHelp(lblSimilarWS, ((bool)(resources.GetObject("lblSimilarWS.ShowHelp"))));
//
// tabPage3
//
tabPage3.Controls.Add(label1);
tabPage3.Controls.Add(lblFontDesc);
tabPage3.Controls.Add(this.m_defaultFontsControl);
tabPage3.Controls.Add(this.radioRTL);
tabPage3.Controls.Add(this.radioLTR);
tabPage3.Controls.Add(lblDirectionDesc);
tabPage3.Controls.Add(lblDirection);
tabPage3.Controls.Add(lblDefaultFonts);
tabPage3.Controls.Add(this.m_localeMenuButton);
tabPage3.Controls.Add(lblSimilarWSDesc);
tabPage3.Controls.Add(lblSimilarWS);
resources.ApplyResources(tabPage3, "tabPage3");
tabPage3.Name = "tabPage3";
this.helpProvider1.SetShowHelp(tabPage3, ((bool)(resources.GetObject("tabPage3.ShowHelp"))));
//
// label1
//
resources.ApplyResources(label1, "label1");
label1.Name = "label1";
this.helpProvider1.SetShowHelp(label1, ((bool)(resources.GetObject("label1.ShowHelp"))));
//
// lblFontDesc
//
resources.ApplyResources(lblFontDesc, "lblFontDesc");
lblFontDesc.Name = "lblFontDesc";
this.helpProvider1.SetShowHelp(lblFontDesc, ((bool)(resources.GetObject("lblFontDesc.ShowHelp"))));
//
// m_defaultFontsControl
//
this.m_defaultFontsControl.DefaultHeadingFont = "";
this.m_defaultFontsControl.DefaultNormalFont = "";
this.m_defaultFontsControl.DefaultPublicationFont = "";
this.m_defaultFontsControl.LangDef = null;
resources.ApplyResources(this.m_defaultFontsControl, "m_defaultFontsControl");
this.m_defaultFontsControl.Name = "m_defaultFontsControl";
this.helpProvider1.SetShowHelp(this.m_defaultFontsControl, ((bool)(resources.GetObject("m_defaultFontsControl.ShowHelp"))));
//
// radioRTL
//
resources.ApplyResources(this.radioRTL, "radioRTL");
this.helpProvider1.SetHelpString(this.radioRTL, resources.GetString("radioRTL.HelpString"));
this.radioRTL.Name = "radioRTL";
this.helpProvider1.SetShowHelp(this.radioRTL, ((bool)(resources.GetObject("radioRTL.ShowHelp"))));
//
// radioLTR
//
this.radioLTR.Checked = true;
resources.ApplyResources(this.radioLTR, "radioLTR");
this.helpProvider1.SetHelpString(this.radioLTR, resources.GetString("radioLTR.HelpString"));
this.radioLTR.Name = "radioLTR";
this.helpProvider1.SetShowHelp(this.radioLTR, ((bool)(resources.GetObject("radioLTR.ShowHelp"))));
this.radioLTR.TabStop = true;
this.radioLTR.CheckedChanged += new System.EventHandler(this.radioLTR_CheckedChanged);
//
// m_localeMenuButton
//
this.m_localeMenuButton.DisplayLocaleId = null;
this.helpProvider1.SetHelpString(this.m_localeMenuButton, resources.GetString("m_localeMenuButton.HelpString"));
resources.ApplyResources(this.m_localeMenuButton, "m_localeMenuButton");
this.m_localeMenuButton.Name = "m_localeMenuButton";
this.m_localeMenuButton.SelectedLocaleId = null;
this.helpProvider1.SetShowHelp(this.m_localeMenuButton, ((bool)(resources.GetObject("m_localeMenuButton.ShowHelp"))));
//
// WritingSystemWizard
//
this.AcceptButton = null;
resources.ApplyResources(this, "$this");
this.Name = "WritingSystemWizard";
this.helpProvider1.SetShowHelp(this, ((bool)(resources.GetObject("$this.ShowHelp"))));
this.ShowInTaskbar = false;
this.StepNames = new string[] {
resources.GetString("$this.StepNames"),
resources.GetString("$this.StepNames1"),
resources.GetString("$this.StepNames2"),
resources.GetString("$this.StepNames3")};
this.StepPageCount = 4;
this.Closing += new System.ComponentModel.CancelEventHandler(this.WritingSystemWizard_Closing);
this.tabSteps.ResumeLayout(false);
tabPage1.ResumeLayout(false);
tabPage2.ResumeLayout(false);
tabPage2.PerformLayout();
tabPage4.ResumeLayout(false);
tabPage3.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
示例8: InitializeComponent
//.........这里部分代码省略.........
// tpException
//
tpException.Controls.Add(txtExceptionDetails);
tpException.Location = new Point(4, 22);
tpException.Name = "tpException";
tpException.Size = new Size(386, 175);
tpException.TabIndex = 1;
tpException.Text = "Exception";
tpException.ToolTipText = "Displays detailed information about the error that occurred";
//
// tpGeneral
//
tpGeneral.Controls.Add(pictureBox);
tpGeneral.Controls.Add(txtExceptionMessage);
tpGeneral.Controls.Add(txtExceptionType);
tpGeneral.Controls.Add(lblExceptionType);
tpGeneral.Controls.Add(lblExceptionMessage);
tpGeneral.Controls.Add(lblGeneralMessage);
tpGeneral.Location = new Point(4, 22);
tpGeneral.Name = "tpGeneral";
tpGeneral.Size = new Size(386, 175);
tpGeneral.TabIndex = 0;
tpGeneral.Text = "General";
tpGeneral.ToolTipText = "Displays general information about the error that occurred";
//
// txtExceptionMessage
//
txtExceptionMessage.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
| AnchorStyles.Left)
| AnchorStyles.Right;
txtExceptionMessage.Location = new Point(77, 100);
txtExceptionMessage.Multiline = true;
txtExceptionMessage.Name = "txtExceptionMessage";
txtExceptionMessage.ReadOnly = true;
txtExceptionMessage.Size = new Size(306, 71);
txtExceptionMessage.TabIndex = 5;
//
// lblExceptionMessage
//
lblExceptionMessage.Location = new Point(15, 100);
lblExceptionMessage.Name = "lblExceptionMessage";
lblExceptionMessage.Size = new Size(56, 14);
lblExceptionMessage.TabIndex = 4;
lblExceptionMessage.Text = "Message";
//
// lblGeneralMessage
//
lblGeneralMessage.Anchor = (AnchorStyles.Top | AnchorStyles.Left)
| AnchorStyles.Right;
lblGeneralMessage.Location = new Point(77, 7);
lblGeneralMessage.Name = "lblGeneralMessage";
lblGeneralMessage.Size = new Size(306, 60);
lblGeneralMessage.TabIndex = 1;
lblGeneralMessage.Text = "An internal exception has occurred within Exception Reporter";
//
// tabControl
//
tabControl.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
| AnchorStyles.Left)
| AnchorStyles.Right;
tabControl.Controls.Add(tpGeneral);
tabControl.Controls.Add(tpException);
tabControl.HotTrack = true;
tabControl.Location = new Point(8, 7);
tabControl.Name = "tabControl";
tabControl.SelectedIndex = 0;
tabControl.ShowToolTips = true;
tabControl.Size = new Size(394, 201);
tabControl.TabIndex = 0;
//
// cmdOK
//
cmdOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
cmdOK.ImageAlign = ContentAlignment.MiddleLeft;
cmdOK.Location = new Point(320, 212);
cmdOK.Name = "cmdOK";
cmdOK.Size = new Size(80, 25);
cmdOK.TabIndex = 7;
cmdOK.Text = "OK";
//
// InternalExceptionView
//
AutoScaleBaseSize = new Size(5, 13);
ClientSize = new Size(407, 241);
Controls.Add(tabControl);
Controls.Add(cmdOK);
MaximizeBox = false;
MinimizeBox = false;
Name = "InternalExceptionView";
ShowInTaskbar = false;
StartPosition = FormStartPosition.CenterParent;
Text = "Exception Reporter: Problem Occurred";
((ISupportInitialize)(pictureBox)).EndInit();
tpException.ResumeLayout(false);
tpException.PerformLayout();
tpGeneral.ResumeLayout(false);
tpGeneral.PerformLayout();
tabControl.ResumeLayout(false);
ResumeLayout(false);
}
示例9: GenerateGB
//.........这里部分代码省略.........
Column_income_volume,
Column_income_comment});
dataGridView_income.MultiSelect = false;
//
// button_saveincome
//
button_saveincome.Location = new System.Drawing.Point(630, 166);
button_saveincome.Name = "button_saveincome";
button_saveincome.Size = new System.Drawing.Size(75, 23);
button_saveincome.TabIndex = 33;
button_saveincome.Text = "保存";
button_saveincome.UseVisualStyleBackColor = true;
//
// label26
//
label26.AutoSize = true;
label26.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
label26.Location = new System.Drawing.Point(18, 25);
label26.Name = "label26";
label26.Size = new System.Drawing.Size(84, 12);
label26.TabIndex = 32;
label26.Text = "本月收入(万)";
//
// numericUpDown_income
//
numericUpDown_income.Location = new System.Drawing.Point(20, 40);
numericUpDown_income.Name = "numericUpDown_income";
numericUpDown_income.Enabled = false;
numericUpDown_income.Size = new System.Drawing.Size(87, 21);
numericUpDown_income.TabIndex = 31;
numericUpDown_income.TextAlign = HorizontalAlignment.Center;
numericUpDown_income.InterceptArrowKeys = false;
numericUpDown_income.Maximum = 100000;
numericUpDown_income.DecimalPlaces = 2;
//
// contextMenuStrip1
//
contextMenuStrip1.Items.AddRange(new ToolStripItem[] {
ToolStripMenuItem_delete});
contextMenuStrip1.Name = "contextMenuStrip1";
contextMenuStrip1.Size = new Size(153, 48);
//
// ToolStripMenuItem_delete
//
ToolStripMenuItem_delete.Name = "ToolStripMenuItem_delete";
ToolStripMenuItem_delete.Size = new Size(152, 22);
ToolStripMenuItem_delete.Text = "删除";
contextMenuStrip1.ResumeLayout(false);
GB.ResumeLayout(false);
tabControl_month.ResumeLayout(false);
tabPage_cash.ResumeLayout(false);
tabPage_cash.PerformLayout();
groupbox_cash.ResumeLayout(false);
groupbox_cash.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_volume)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_rate)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_cash)).EndInit();
tabPage_invest.ResumeLayout(false);
tabPage_invest.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_invest)).EndInit();
groupBox_invest.ResumeLayout(false);
groupBox_invest.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_volumeinvest)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_rateinvest)).EndInit();
tabPage_debt.ResumeLayout(false);
tabPage_debt.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_debt)).EndInit();
groupBox_debt.ResumeLayout(false);
groupBox_debt.PerformLayout();
((System.ComponentModel.ISupportInitialize)(numericUpDown_volumedebt)).EndInit();
tabPage_payout.ResumeLayout(false);
tabPage_payout.PerformLayout();
((System.ComponentModel.ISupportInitialize)(dataGridView_payout)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_payout)).EndInit();
tabPage_income.ResumeLayout(false);
tabPage_income.PerformLayout();
((System.ComponentModel.ISupportInitialize)(dataGridView_income)).EndInit();
((System.ComponentModel.ISupportInitialize)(numericUpDown_income)).EndInit();
ResumeLayout(false);
ToolStripMenuItem_delete.Click += new EventHandler(ToolStripMenuItem_delete_Click);
dataGridView_payout.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown);
dataGridView_income.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown);
button_new.Click += new EventHandler(button_new_Click);
button_save.Click += new EventHandler(button_save_Click);
listBox_invest.MouseDoubleClick += new MouseEventHandler(listBox_invent_MouseDoubleClick);
button_stopinvest.Click += new EventHandler(button_stopinvest_Click);
button_updateinvest.Click += new EventHandler(button_updateinvest_Click);
listBox_debt.MouseDoubleClick += new MouseEventHandler(listBox_debt_MouseDoubleClick);
button_newdebt.Click += new EventHandler(button_newdebt_Click);
button_stopdebt.Click += new EventHandler(button_stopdebt_Click);
button_updatedebt.Click += new EventHandler(button_updatedebt_Click);
button_savepayout.Click += new EventHandler(button_savepayout_Click);
button_saveincome.Click += new EventHandler(button_saveincome_Click);
}
示例10: ShowTabPage
private void ShowTabPage(TreeNode node)
{
TestSuiteFileEntry fileEntry = null;
if ((null == node) || (null == (fileEntry = node.Tag as TestSuiteFileEntry)))
return;
mnuFileClose.Enabled = true;
if (this.tcFiles.Controls.ContainsKey(fileEntry.FileName))
{
//System.Windows.Forms.TabPage tabPage1 = (System.Windows.Forms.TabPage)this.tcFiles.Controls[fileEntry.FileName];
tcFiles.SelectTab(fileEntry.FileName);
return;
}
//txtFile.Clear();
// this.Text = Application.ProductName + " - " + _testSuite.Name + ": " + fileEntry.Name;
// _cmdOpenTestSuiteFile.Execute(fileEntry.FileName);
System.Windows.Forms.TextBox textBox = new System.Windows.Forms.TextBox();
System.Windows.Forms.TabPage tabPage = new System.Windows.Forms.TabPage();
this.tcFiles.SuspendLayout();
tabPage.SuspendLayout();
//
// tcFiles
//
this.tcFiles.Controls.Add(tabPage);
//
// tabPage
//
tabPage.Controls.Add(textBox);
tabPage.Location = new System.Drawing.Point(4, 22);
tabPage.Name = fileEntry.FileName;
tabPage.Padding = new System.Windows.Forms.Padding(3);
tabPage.Size = new System.Drawing.Size(430, 249);
tabPage.TabIndex = 0;
tabPage.UseVisualStyleBackColor = true;
tabPage.Tag = node.Tag;
//
// textBox
//
textBox.Dock = System.Windows.Forms.DockStyle.Fill;
textBox.Font = new System.Drawing.Font("Courier New", 11.25F);
textBox.Location = new System.Drawing.Point(3, 3);
textBox.Multiline = true;
textBox.Name = "textBox1";
textBox.Size = new System.Drawing.Size(424, 243);
textBox.TabIndex = 0;
textBox.TextChanged += new System.EventHandler(this.tcFiles_TextChanged);
textBox.Tag = node.Tag;
using (StreamReader sr = new StreamReader(fileEntry.FileName, Encoding.ASCII))
{
textBox.Text = sr.ReadToEnd();
textBox.SelectionStart = 0;
textBox.SelectionLength = 0;
sr.Close();
}
tabPage.Text = fileEntry.Name;
this.tcFiles.ResumeLayout(false);
tabPage.ResumeLayout(false);
tabPage.PerformLayout();
tcFiles.SelectTab(fileEntry.FileName);
tcFiles.Visible = true;
fileEntry.Changed = false;
DetermineSaveMenuState();
}
示例11: 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);
}
示例12: InitializeComponent
//.........这里部分代码省略.........
resources.ApplyResources(this.btnHeaderFooter, "btnHeaderFooter");
this.btnHeaderFooter.Name = "btnHeaderFooter";
this.btnHeaderFooter.UseVisualStyleBackColor = true;
this.btnHeaderFooter.Click += new System.EventHandler(this.btnHeaderFooter_Click);
//
// m_cboSeparator
//
this.m_cboSeparator.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
resources.ApplyResources(this.m_cboSeparator, "m_cboSeparator");
this.m_cboSeparator.Items.AddRange(new object[] {
resources.GetString("m_cboSeparator.Items"),
resources.GetString("m_cboSeparator.Items1"),
resources.GetString("m_cboSeparator.Items2")});
this.m_cboSeparator.Name = "m_cboSeparator";
//
// m_ckbDiffFirstHF
//
resources.ApplyResources(this.m_ckbDiffFirstHF, "m_ckbDiffFirstHF");
this.m_ckbDiffFirstHF.Name = "m_ckbDiffFirstHF";
//
// m_ckbDiffEvenHF
//
resources.ApplyResources(this.m_ckbDiffEvenHF, "m_ckbDiffEvenHF");
this.m_ckbDiffEvenHF.Name = "m_ckbDiffEvenHF";
//
// m_cbBookStart
//
this.m_cbBookStart.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
resources.ApplyResources(this.m_cbBookStart, "m_cbBookStart");
this.m_cbBookStart.Items.AddRange(new object[] {
resources.GetString("m_cbBookStart.Items"),
resources.GetString("m_cbBookStart.Items1"),
resources.GetString("m_cbBookStart.Items2")});
this.m_cbBookStart.Name = "m_cbBookStart";
this.m_cbBookStart.Sorted = true;
//
// label25
//
resources.ApplyResources(this.label25, "label25");
this.label25.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label25.Name = "label25";
//
// label22
//
resources.ApplyResources(this.label22, "label22");
this.label22.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label22.Name = "label22";
//
// label17
//
resources.ApplyResources(this.label17, "label17");
this.label17.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.label17.Name = "label17";
//
// panel3
//
this.panel3.BackColor = System.Drawing.SystemColors.Window;
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
resources.ApplyResources(this.panel3, "panel3");
this.panel3.Name = "panel3";
//
// PageSetupDlg
//
this.AcceptButton = this.m_btnOK;
resources.ApplyResources(this, "$this");
this.CancelButton = m_btnCancel;
this.ControlBox = false;
this.Controls.Add(m_btnHelp);
this.Controls.Add(m_btnCancel);
this.Controls.Add(this.m_btnOK);
this.Controls.Add(this.tabControl1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "PageSetupDlg";
this.ShowIcon = false;
this.ShowInTaskbar = false;
tabMargins.ResumeLayout(false);
tabMargins.PerformLayout();
this.panelPreviewContainerMargins.ResumeLayout(false);
tabPage.ResumeLayout(false);
tabPage.PerformLayout();
this.pnlPreviewContainer.ResumeLayout(false);
this.pnlDraftOptions.ResumeLayout(false);
this.pnlDraftOptions.PerformLayout();
this.pnlTwoColumn.ResumeLayout(false);
this.pnlOneColumn.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pbDraft)).EndInit();
this.pnlBookFoldOptions.ResumeLayout(false);
this.pnlBookFoldOptions.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pbBookFold)).EndInit();
this.tabControl1.ResumeLayout(false);
this.tabLayout.ResumeLayout(false);
this.tabLayout.PerformLayout();
this.panelPreviewContainerText.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.m_nudLineSpacing)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.m_nudBaseCharSize)).EndInit();
this.ResumeLayout(false);
}