📄 write_name.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace MineSweeping
{
public partial class Write_Name : Form
{
public Write_Name()
{
InitializeComponent();
}
public static bool ShowSelf(IWin32Window parent, Point location, string grade, ref string name)
{
bool result;
Write_Name n = new Write_Name();
n.label1.Text = "已破" + grade + "记录。";
n.textBox1.Text = name;
n.Location = location;
if (n.ShowDialog() == DialogResult.OK)
{
name = n.textBox1.Text;
result = true;
}
else
result = false;
n.Dispose();
n = null;
return result;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -