⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hero.cs

📁 扫雷源代码,能智能形成堆栈与线程技术应用,是个很有用的游戏开发软件
💻 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 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -