本文整理汇总了C#中Page.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# Page.ResumeLayout方法的具体用法?C# Page.ResumeLayout怎么用?C# Page.ResumeLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Page
的用法示例。
在下文中一共展示了Page.ResumeLayout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateOutputPage
private void CreateOutputPage()
{
m_OutputPage = new Page("Output");
m_OutputPage.SuspendLayout();
m_OutputControl = new OutputControl() {
Id = "Output" };
m_OutputPage.AddControl( m_OutputControl, true );
m_PictureBox = new PictureBox();
((System.ComponentModel.ISupportInitialize)(m_PictureBox)).BeginInit();
m_PictureBox.Location = new System.Drawing.Point(0, 0);
m_PictureBox.Margin = new System.Windows.Forms.Padding(0, 6, 0, 0);
m_PictureBox.Size = new System.Drawing.Size(32, 32);
m_PictureBox.TabStop = false;
//m_PictureBox.Image = NoConsoleLib.Properties.Resources.circle_green;
((System.ComponentModel.ISupportInitialize)(m_PictureBox)).EndInit();
m_InfoTextBox = new InfoTextbox();
m_InfoTextBox.SetHeightRows( 2 );
m_KillButton = new Button();
m_KillButton.Image = NoConsoleLib.Properties.Resources.Skull;
m_KillButton.Location = new System.Drawing.Point(0, 0);
m_KillButton.Size = new System.Drawing.Size(26, 26);
Lib.ToolTip.SetToolTip(m_KillButton, "Kill");
m_KillButton.UseVisualStyleBackColor = true;
m_KillButton.Click += new System.EventHandler(this.OnKillClick);
TableLayoutPanel tableLayoutPanel1 = new TableLayoutPanel();
tableLayoutPanel1.SuspendLayout();
tableLayoutPanel1.ColumnCount = 3;
tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 32F + 12f));
tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 32F));
tableLayoutPanel1.RowCount = 1;
tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
tableLayoutPanel1.Controls.Add(m_PictureBox, 0, 0);
tableLayoutPanel1.Controls.Add(m_InfoTextBox, 1, 0);
tableLayoutPanel1.Controls.Add(m_KillButton, 2, 0);
tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0);
tableLayoutPanel1.Size = new System.Drawing.Size(300, 32 + 6);
m_OutputPage.AddControl(tableLayoutPanel1);
tableLayoutPanel1.ResumeLayout(false);
m_OutputPage.ResumeLayout();
}
示例2: CreateParamsPage
private void CreateParamsPage()
{
m_ParamsPage = new Page("Parameters");
m_ParamsPage.SuspendLayout();
m_ExeFileProp = new FileProperty {
Id = "ExecutableFile",
Title = "Executable file" };
m_ParamsPage.AddControl( m_ExeFileProp );
m_ExeFileProp.MyOpenFileDialog.Filter = "Executable files|*.exe|All files|*";
m_WorkingDirProp = new DirectoryProperty {
Id = "WorkingDirectory",
Title = "Working directory" };
m_ParamsPage.AddControl( m_WorkingDirProp );
m_ArgsMemoProp = new MemoProperty {
Id = "Arguments",
Title = "Arguments" };
m_ParamsPage.AddControl( m_ArgsMemoProp );
m_ArgsMemoProp.MyTextBox.Font = Lib.MonospacedFont;
m_ParamsPage.ResumeLayout();
}