📄 dimensionsdialog.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace MazeSolution
{
/// <summary>
/// Summary description for DimensionsDialog.
/// </summary>
public class DimensionsDialog : System.Windows.Forms.Form
{
public System.Windows.Forms.Button OKButton;
public System.Windows.Forms.Label label1;
public System.Windows.Forms.Label label2;
public System.Windows.Forms.NumericUpDown numericUpDown1;
public System.Windows.Forms.NumericUpDown numericUpDown2;
public System.Windows.Forms.Button CnclButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public DimensionsDialog()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.OKButton = new System.Windows.Forms.Button();
this.CnclButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
this.SuspendLayout();
//
// OKButton
//
this.OKButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.OKButton.Location = new System.Drawing.Point(43, 118);
this.OKButton.Name = "OKButton";
this.OKButton.Size = new System.Drawing.Size(103, 30);
this.OKButton.TabIndex = 0;
this.OKButton.Text = "OK";
//
// CnclButton
//
this.CnclButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.CnclButton.Location = new System.Drawing.Point(185, 118);
this.CnclButton.Name = "CnclButton";
this.CnclButton.Size = new System.Drawing.Size(102, 30);
this.CnclButton.TabIndex = 1;
this.CnclButton.Text = "Cancel";
//
// label1
//
this.label1.Location = new System.Drawing.Point(31, 23);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(193, 20);
this.label1.TabIndex = 2;
this.label1.Text = "Number of grid blocks per row:";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label2
//
this.label2.Location = new System.Drawing.Point(122, 72);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(102, 19);
this.label2.TabIndex = 3;
this.label2.Text = "Grid block size:";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// numericUpDown1
//
this.numericUpDown1.Location = new System.Drawing.Point(229, 20);
this.numericUpDown1.Maximum = new System.Decimal(new int[] {
200,
0,
0,
0});
this.numericUpDown1.Name = "numericUpDown1";
this.numericUpDown1.Size = new System.Drawing.Size(62, 22);
this.numericUpDown1.TabIndex = 4;
//
// numericUpDown2
//
this.numericUpDown2.Location = new System.Drawing.Point(229, 69);
this.numericUpDown2.Name = "numericUpDown2";
this.numericUpDown2.Size = new System.Drawing.Size(62, 22);
this.numericUpDown2.TabIndex = 5;
//
// DimensionsDialog
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(330, 164);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.numericUpDown2,
this.numericUpDown1,
this.label2,
this.label1,
this.CnclButton,
this.OKButton});
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "DimensionsDialog";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Maze Parameters";
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -