hero.cs
来自「扫雷源代码,能智能形成堆栈与线程技术应用,是个很有用的游戏开发软件」· CS 代码 · 共 48 行
CS
48 行
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 Hero : Form
{
private bool change= false;
public Hero()
{
InitializeComponent();
}
public static bool ShowSelf(IWin32Window parent, Point location, string least, string middle, string highest,ref bool change)
{
bool result;
Hero h = new Hero();
h.label1.Text = least;
h.label2.Text = middle;
h.label3.Text = highest;
h.Location = location;
if (h.ShowDialog(parent) == DialogResult.OK)
{
if (h.change == true)
{
change = true;
}
result = true;
}
else
result = false;
h.Dispose();
h = null;
return result;
}
private void button2_Click(object sender, EventArgs e)
{
change=true;
label1.Text = "初级: 999秒 匿名 ";
label2.Text = "中级: 999秒 匿名 ";
label3.Text = "高级: 999秒 匿名 ";
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?