当前位置: 首页>>代码示例>>C#>>正文


C# Form.ResumeLayout方法代码示例

本文整理汇总了C#中Form.ResumeLayout方法的典型用法代码示例。如果您正苦于以下问题:C# Form.ResumeLayout方法的具体用法?C# Form.ResumeLayout怎么用?C# Form.ResumeLayout使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Form的用法示例。


在下文中一共展示了Form.ResumeLayout方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DownloadLWJGL

    public bool DownloadLWJGL()
    {
        Debug.WriteLine("[DownloadLWJGL] Creating DownloadLWJGLStatusForm form.");
        DownloadLWJGLStatusForm = new Form();
        Label DownloadStatusLabel = new Label();
        DownloadLWJGLStatusForm.SuspendLayout();
        DownloadStatusLabel.Text = "Downloading LWJGL...";
        DownloadStatusLabel.Name = "DownloadStatusLabel";
        DownloadStatusLabel.Location = new System.Drawing.Point(12, 0);
        DownloadStatusLabel.Height = 48;
        DownloadStatusLabel.Width = 192;
        DownloadStatusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
        DownloadStatusLabel.BackColor = System.Drawing.SystemColors.Control;
        DownloadStatusLabel.ForeColor = System.Drawing.SystemColors.ControlText;
        DownloadStatusLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8);
        DownloadLWJGLStatusForm.Height = 72;
        DownloadLWJGLStatusForm.Width = 216;
        DownloadLWJGLStatusForm.Controls.Add(DownloadStatusLabel);
        DownloadLWJGLStatusForm.FormBorderStyle = FormBorderStyle.FixedToolWindow;
        DownloadLWJGLStatusForm.ResumeLayout(false);
        DownloadLWJGLStatusForm.Text = "launcher²";
        DownloadLWJGLStatusForm.Icon = global::launcher2.Properties.Resources.l2_ico;
        DownloadLWJGLStatusForm.FormClosing += new FormClosingEventHandler(DownloadLWJGLStatusForm_FormClosing);
        DownloadLWJGLStatusForm.Refresh();
        DownloadLWJGLStatusForm.Show();
        DownloadLWJGLStatusForm.Activate();

        DownloadLWJGLThread = new BackgroundWorker();
        DownloadLWJGLThread.WorkerReportsProgress = true;
        DownloadLWJGLThread.WorkerSupportsCancellation = true;
        DownloadLWJGLThread.DoWork += new DoWorkEventHandler(DownloadLWJGLThread_DoWork);
        DownloadLWJGLThread.ProgressChanged += new ProgressChangedEventHandler(DownloadLWJGLThread_ProgressChanged);
        DownloadLWJGLThread.RunWorkerCompleted += new RunWorkerCompletedEventHandler(DownloadLWJGLThread_RunWorkerCompleted);
        DownloadLWJGLThread.RunWorkerAsync();
        return true;
    }
开发者ID:Qwertylex,项目名称:launcher2,代码行数:36,代码来源:MinecraftLauncher.cs

示例2: InitializeComponents


//.........这里部分代码省略.........
        coreButton.Location = new System.Drawing.Point(60, 28);
        coreButton.Name = "coreButton";
        coreButton.Size = new System.Drawing.Size(130, 81);
        coreButton.TabIndex = 3;
        coreButton.TabStop = false;
        coreButton.Click += delegate(object sender, EventArgs e) {
			denyPlayer.Play();
		};
        coreButton.MouseEnter += delegate(object sender, EventArgs e) {
			coreButton.Image = imageCoreHi;
			contentPicture.Image = imageCoreDesc;
			hoverPlayer.Play();
		};
        coreButton.MouseLeave += delegate(object sender, EventArgs e) {
			coreButton.Image = imageCore;
			contentPicture.Image = imageLogo;
		};
        // 
        // installButton
        // 
        installButton.Image = imageInstall;
        installButton.Location = new System.Drawing.Point(603, 539);
        installButton.Name = "installButton";
        installButton.Size = new System.Drawing.Size(173, 102);
        installButton.TabIndex = 2;
        installButton.TabStop = false;
        installButton.Click += delegate(object sender, EventArgs e) {
			installSelected = true;
			installerForm.Close();
		};
        installButton.MouseEnter += delegate(object sender, EventArgs e) {
			installButton.Image = imageInstallHi;
			hoverPlayer.Play();
		};
        installButton.MouseLeave += delegate(object sender, EventArgs e) {
			installButton.Image = imageInstall;
		};
        // 
        // exitButton
        // 
        exitButton.Image = imageExit;
        exitButton.Location = new System.Drawing.Point(8, 539);
        exitButton.Name = "exitButton";
        exitButton.Size = new System.Drawing.Size(125, 102);
        exitButton.TabIndex = 1;
        exitButton.TabStop = false;
        exitButton.Click += delegate(object sender, EventArgs e) {
			installSelected = false;
			installerForm.Close();
		};
        exitButton.MouseEnter += delegate(object sender, EventArgs e) {
			exitButton.Image = imageExitHi;
			hoverPlayer.Play();
		};
        exitButton.MouseLeave += delegate(object sender, EventArgs e) {
			exitButton.Image = imageExit;
		};
        // 
        // InstallerForm
        // 
        installerForm.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
        installerForm.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
        installerForm.BackColor = System.Drawing.Color.Black;
        installerForm.ClientSize = new System.Drawing.Size(784, 647);
		installerForm.Controls.Add(dlcCheckbox);
        installerForm.Controls.Add(rebalanceCheckbox);
        installerForm.Controls.Add(equipmentCheckbox);
        installerForm.Controls.Add(cyberwareCheckbox);
        installerForm.Controls.Add(coreCheckbox);
        installerForm.Controls.Add(contentPicture);
		installerForm.Controls.Add(dlcButton);
        installerForm.Controls.Add(rebalanceButton);
        installerForm.Controls.Add(equipmentButton);
        installerForm.Controls.Add(cyberwareButton);
        installerForm.Controls.Add(coreButton);
        installerForm.Controls.Add(installButton);
        installerForm.Controls.Add(exitButton);
        installerForm.MaximizeBox = false;
        installerForm.MaximumSize = new System.Drawing.Size(800, 685);
        installerForm.MinimizeBox = false;
        installerForm.MinimumSize = new System.Drawing.Size(800, 685);
        installerForm.Name = "installerForm";
        installerForm.Padding = new System.Windows.Forms.Padding(5, 25, 5, 5);
        installerForm.Text = title;
		((System.ComponentModel.ISupportInitialize)(dlcCheckbox)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(rebalanceCheckbox)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(equipmentCheckbox)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(cyberwareCheckbox)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(coreCheckbox)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(contentPicture)).EndInit();
		((System.ComponentModel.ISupportInitialize)(dlcButton)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(rebalanceButton)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(equipmentButton)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(cyberwareButton)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(coreButton)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(installButton)).EndInit();
        ((System.ComponentModel.ISupportInitialize)(exitButton)).EndInit();
        installerForm.ResumeLayout(false);
        installerForm.Refresh();
    }
开发者ID:Aldavere,项目名称:project-nevada,代码行数:101,代码来源:script.cs


注:本文中的Form.ResumeLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。