77 lines
2.7 KiB
C#
77 lines
2.7 KiB
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace ShowGridNumber
|
|
{
|
|
public partial class ShowGridLevelNumOKForm : Form
|
|
{
|
|
public ShowGridLevelNumOKForm()
|
|
{
|
|
this.InitializeComponent();
|
|
ShowInTaskbar = false;
|
|
}
|
|
|
|
private void ShowGridLevelNumOKForm_KeyDown(object sender, KeyEventArgs e)
|
|
{
|
|
Keys keyCode = e.KeyCode;
|
|
if (keyCode == Keys.Escape)
|
|
{
|
|
base.Close();
|
|
}
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
this.label_0 = new Label();
|
|
this.button_0 = new Button();
|
|
this.chkShowLink = new CheckBox();
|
|
base.SuspendLayout();
|
|
this.label_0.AutoSize = true;
|
|
this.label_0.Font = new Font("微软雅黑", 9f);
|
|
this.label_0.Location = new Point(31, 31);
|
|
this.label_0.Name = "label1";
|
|
this.label_0.Size = new Size(92, 17);
|
|
this.label_0.TabIndex = 0;
|
|
this.label_0.Text = "全局轴号已开启";
|
|
this.button_0.DialogResult = DialogResult.OK;
|
|
this.button_0.Font = new Font("微软雅黑", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
|
|
this.button_0.Location = new Point(70, 111);
|
|
this.button_0.Name = "button1";
|
|
this.button_0.Size = new Size(78, 28);
|
|
this.button_0.TabIndex = 1;
|
|
this.button_0.Text = "确定";
|
|
this.button_0.UseVisualStyleBackColor = true;
|
|
this.chkShowLink.AutoSize = true;
|
|
this.chkShowLink.Location = new Point(9, 68);
|
|
this.chkShowLink.Name = "chkShowLink";
|
|
this.chkShowLink.Size = new Size(144, 16);
|
|
this.chkShowLink.TabIndex = 2;
|
|
this.chkShowLink.Text = "显示链接文件中的轴号";
|
|
this.chkShowLink.UseVisualStyleBackColor = true;
|
|
base.AutoScaleDimensions = new SizeF(6f, 12f);
|
|
base.AutoScaleMode = AutoScaleMode.Font;
|
|
base.ClientSize = new Size(158, 149);
|
|
base.Controls.Add(this.chkShowLink);
|
|
base.Controls.Add(this.button_0);
|
|
base.Controls.Add(this.label_0);
|
|
base.KeyPreview = true;
|
|
base.MaximizeBox = false;
|
|
base.MinimizeBox = false;
|
|
base.Name = "ShowGridLevelNumOKForm";
|
|
base.ShowIcon = false;
|
|
base.StartPosition = FormStartPosition.CenterScreen;
|
|
this.Text = "鸿业提示";
|
|
base.KeyDown += this.ShowGridLevelNumOKForm_KeyDown;
|
|
base.ResumeLayout(false);
|
|
base.PerformLayout();
|
|
}
|
|
|
|
private Label label_0;
|
|
|
|
private Button button_0;
|
|
|
|
public CheckBox chkShowLink;
|
|
}
|
|
}
|