write_name.cs

来自「扫雷源代码,能智能形成堆栈与线程技术应用,是个很有用的游戏开发软件」· CS 代码 · 共 36 行

CS
36
字号
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 + =
减小字号Ctrl + -
显示快捷键?