学习ING。。。图片配对

 最近听朋友说东方标准的培训不错。前去观摩了一下。感觉还好。

他们的好多项目都写得不错的。这是我从他们那拷回来的一小段程序。

感觉很有意思,什么时候能学会这些就好了。。。。

以后会陆续上传。

不说了,上代码。。

 

 

 

form1.cs

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace MatchBox
{
    public partial class BoxesForm : Form
    {
        // 一维数组,与窗体上的每个图片框对应,存放每个图片框对应的图片索引
        int[] pictureIds;
        int firstIndex;      // 记录点击的第一个图片框
        int secondIndex;     // 记录点击的匹配的图片框
        int firstPictureId;  // 已经点中的第一个图片框中显示的图片索引 
        int secondPictureId; // 已经点中的匹配的图片框中显示的图片索引 
        int count;           // 计数,记录点击了几个图片

        int gameState;       // 游戏状态:0-进行中,1-新游戏,-1-未开始

        int gameTime;        // 游戏时间
        int matchNum;        // 配成对的数量
        int record;          // 最高记录

        public BoxesForm()
        {
            InitializeComponent();
        }

        // 窗体加载时,每个picturebox关联到一个动物图片
        private void BoxesForm_Load(object sender, EventArgs e)
        {
            this.pictureIds = new int[16];  // 创建一维数组
            gameState = -1;                 // 游戏状态为未开始
            record = 0;                     // 没有最高记录
        }

        // 开始游戏
        private void StartGame()
        {
            gameState = 1;      // 标志为新游戏
            this.gameTime = 0;  // 游戏时间
            this.matchNum = 0;  // 配对的数量

            // 设置各个变量的初始状态
            ResetState();

            // 将计时器都停止
            tmrGame.Stop();
            tmrShow.Stop();
            tmrMatch.Stop();

            lblCostTime.Text = "0秒";

            // 将记录图片框显示的图片的数组都置为-1           
            for (int i = 0; i < this.pictureIds.Length; i++)
            {
                this.pictureIds[i] = -1;
            }

            // 随机指定每个图片框显示的动物图片
            for (int i = 1; i <= 8; i++)
            {
                // 每张图片都放在两个图片框中
                PutIntoBox(i);
                PutIntoBox(i);
            }

            // 显示所有图片
            foreach (Control item in this.Controls)
            {
                if (item is PictureBox)
                {
                    int index = Convert.ToInt32(((PictureBox)item).Tag);
                    int pictureIndex = this.pictureIds[index];
                    ((PictureBox)item).Visible = true;
                    ((PictureBox)item).Image = ilPictures.Images[pictureIndex];
                }
            }

            // 启动计时器
            tmrShow.Start();
        }

        // 将指定索引的图片随机放在一个图片框中,记录在一维数组中
        private void PutIntoBox(int pictureIndex)
        {
            Random r = new Random();
            int boxId = r.Next(16);   // 随机找到一个图片框
            if (this.pictureIds[boxId] != -1)  // 已经有图片了
            {
                // 找到一个还没有图片的图片框
                while (this.pictureIds[boxId] != -1)
                {
                    boxId = r.Next(16);   // 随机找到一个图片框
                }
            }

            this.pictureIds[boxId] = pictureIndex;  // 指定这个图片框对应的图片
        }

        // 图片框单击事件
        private void picBox_Click(object sender, EventArgs e)
        {
            // 如果游戏不在进行中,则不能点击图片框
            if (gameState != 0)
            {
                return;
            }

            int newIndex = Convert.ToInt32(((PictureBox)sender).Tag);   // 当前点中的图片框在数组中的索引
            int newPictureId = this.pictureIds[newIndex];               // 当前点中的图片框显示的图片的索引           
                       
            count++;  // 计数
           
            if (count == 1)  // 点击的是第一张图片
            {
                this.firstIndex = newIndex;
                this.firstPictureId = newPictureId;
                ((PictureBox)sender).Image = ilPictures.Images[newPictureId];
               
                tmrShow.Start();               
            }
            else if (count == 2)  // 点击了两张图片
            {
                this.secondIndex = newIndex;
                this.secondPictureId = newPictureId;
                ((PictureBox)sender).Image = ilPictures.Images[newPictureId];

                tmrShow.Stop();   // 将控制3秒钟显示的定时器停止
                tmrMatch.Start();    // 启动延时0.5s计时器,并判断是否匹配
            }                     
        }

        // 恢复状态
        private void ResetState()
        {
            this.firstIndex = -1;
            this.secondIndex = -1;
            this.firstPictureId = -1;
            this.secondPictureId = -1;
            this.count = 0;  
        }

        // 控制图片最多显示3秒
        private void tmrShow_Tick(object sender, EventArgs e)
        {
            tmrShow.Stop();  // 停止计时器           

            if (gameState == 1)  // 如果是新游戏
            {
                gameState = 0;   // 将游戏状态变为进行中               
                tmrGame.Start(); // 开始计时
            }

            ResetState();      // 清除记录
            HidePictures();   // 隐藏图片          
        }
       
        // 隐藏所有图片
        private void HidePictures()
        {
            // 将所有图片都翻过去           
            foreach (Control item in this.Controls)
            {
                if (item is PictureBox)
                {
                    ((PictureBox)item).Image = ilPictures.Images[0];
                }
            }           
        }

        // 将指定索引的图片框置为不可见
        private void SetInvisible(int index)
        {
            foreach (Control item in this.Controls)
            {
                if (item is PictureBox)
                {
                    if (Convert.ToInt32(((PictureBox)item).Tag) == index)
                    {
                        ((PictureBox)item).Visible = false;
                    }                   
                }
            }
        }

        // 显示0.5秒
        private void tmrMatch_Tick(object sender, EventArgs e)
        {
            tmrMatch.Stop();

            if (this.firstIndex != this.secondIndex && this.firstPictureId == this.secondPictureId)
            {
                // 将图片框置为不可见
                SetInvisible(this.firstIndex);
                SetInvisible(this.secondIndex);
                this.matchNum++;
            }

            ResetState();     // 重新开始配对
            HidePictures();
           
            // 检查是否要停止游戏           
            if (this.matchNum == 8)
            {
                tmrGame.Stop();
                string message = string.Format("配对完成,用时{0}秒,继续努力哦!",this.gameTime);
                MessageBox.Show(message, "游戏结束", MessageBoxButtons.OK, MessageBoxIcon.Information);
                if (this.gameTime < this.record || this.record ==0)
                {
                    lblRecord.Text = this.gameTime.ToString() + "秒";
                }
                this.gameState = -1;   // 游戏变为未开始状态
            }           
        }

        // 开始新游戏
        private void tsmiNewGame_Click(object sender, EventArgs e)
        {
            StartGame();
        }

        // 退出
        private void tsmiExit_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("确实要退出吗?","提示",MessageBoxButtons.YesNo,MessageBoxIcon.Warning);
            if (result == DialogResult.Yes)
            {
                Application.Exit();
            }           
        }

        // 游戏计时
        private void tmrGame_Tick(object sender, EventArgs e)
        {
            this.gameTime++;  // 将时间增加1s
            lblCostTime.Text = gameTime.ToString() + "秒";                    
        }

        private void tsmiRule_Click(object sender, EventArgs e)
        {
            GameRuleForm ruleForm = new GameRuleForm();
            ruleForm.ShowDialog();
        }
    }
}

 

 

 

 

form1.designer.cs

 

namespace MatchBox
{
    partial class BoxesForm
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(BoxesForm));
            this.picBox1 = new System.Windows.Forms.PictureBox();
            this.picBox2 = new System.Windows.Forms.PictureBox();
            this.picBox3 = new System.Windows.Forms.PictureBox();
            this.picBox4 = new System.Windows.Forms.PictureBox();
            this.picBox5 = new System.Windows.Forms.PictureBox();
            this.picBox6 = new System.Windows.Forms.PictureBox();
            this.picBox7 = new System.Windows.Forms.PictureBox();
            this.picBox8 = new System.Windows.Forms.PictureBox();
            this.picBox9 = new System.Windows.Forms.PictureBox();
            this.picBox10 = new System.Windows.Forms.PictureBox();
            this.picBox11 = new System.Windows.Forms.PictureBox();
            this.picBox12 = new System.Windows.Forms.PictureBox();
            this.picBox13 = new System.Windows.Forms.PictureBox();
            this.picBox14 = new System.Windows.Forms.PictureBox();
            this.picBox15 = new System.Windows.Forms.PictureBox();
            this.picBox16 = new System.Windows.Forms.PictureBox();
            this.ilPictures = new System.Windows.Forms.ImageList(this.components);
            this.tmrShow = new System.Windows.Forms.Timer(this.components);
            this.tmrMatch = new System.Windows.Forms.Timer(this.components);
            this.lblGameTime = new System.Windows.Forms.Label();
            this.msGame = new System.Windows.Forms.MenuStrip();
            this.tsmiGame = new System.Windows.Forms.ToolStripMenuItem();
            this.tsmiNewGame = new System.Windows.Forms.ToolStripMenuItem();
            this.tsmiExit = new System.Windows.Forms.ToolStripMenuItem();
            this.tsmiHelp = new System.Windows.Forms.ToolStripMenuItem();
            this.tsmiRule = new System.Windows.Forms.ToolStripMenuItem();
            this.tmrGame = new System.Windows.Forms.Timer(this.components);
            this.lblCostTime = new System.Windows.Forms.Label();
            this.lblGameRecord = new System.Windows.Forms.Label();
            this.lblRecord = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.picBox1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox2)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox3)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox4)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox5)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox6)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox7)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox8)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox9)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox10)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox11)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox12)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox13)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox14)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox15)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox16)).BeginInit();
            this.msGame.SuspendLayout();
            this.SuspendLayout();
            //
            // picBox1
            //
            this.picBox1.BackColor = System.Drawing.Color.Transparent;
            this.picBox1.Location = new System.Drawing.Point(30, 86);
            this.picBox1.Name = "picBox1";
            this.picBox1.Size = new System.Drawing.Size(65, 65);
            this.picBox1.TabIndex = 0;
            this.picBox1.TabStop = false;
            this.picBox1.Tag = "0";
            this.picBox1.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox2
            //
            this.picBox2.BackColor = System.Drawing.Color.Transparent;
            this.picBox2.Location = new System.Drawing.Point(96, 86);
            this.picBox2.Name = "picBox2";
            this.picBox2.Size = new System.Drawing.Size(65, 65);
            this.picBox2.TabIndex = 1;
            this.picBox2.TabStop = false;
            this.picBox2.Tag = "1";
            this.picBox2.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox3
            //
            this.picBox3.BackColor = System.Drawing.Color.Transparent;
            this.picBox3.Location = new System.Drawing.Point(162, 86);
            this.picBox3.Name = "picBox3";
            this.picBox3.Size = new System.Drawing.Size(65, 65);
            this.picBox3.TabIndex = 2;
            this.picBox3.TabStop = false;
            this.picBox3.Tag = "2";
            this.picBox3.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox4
            //
            this.picBox4.BackColor = System.Drawing.Color.Transparent;
            this.picBox4.Location = new System.Drawing.Point(228, 86);
            this.picBox4.Name = "picBox4";
            this.picBox4.Size = new System.Drawing.Size(65, 65);
            this.picBox4.TabIndex = 3;
            this.picBox4.TabStop = false;
            this.picBox4.Tag = "3";
            this.picBox4.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox5
            //
            this.picBox5.BackColor = System.Drawing.Color.Transparent;
            this.picBox5.Location = new System.Drawing.Point(30, 152);
            this.picBox5.Name = "picBox5";
            this.picBox5.Size = new System.Drawing.Size(65, 65);
            this.picBox5.TabIndex = 4;
            this.picBox5.TabStop = false;
            this.picBox5.Tag = "4";
            this.picBox5.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox6
            //
            this.picBox6.BackColor = System.Drawing.Color.Transparent;
            this.picBox6.Location = new System.Drawing.Point(96, 152);
            this.picBox6.Name = "picBox6";
            this.picBox6.Size = new System.Drawing.Size(65, 65);
            this.picBox6.TabIndex = 5;
            this.picBox6.TabStop = false;
            this.picBox6.Tag = "5";
            this.picBox6.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox7
            //
            this.picBox7.BackColor = System.Drawing.Color.Transparent;
            this.picBox7.Location = new System.Drawing.Point(162, 152);
            this.picBox7.Name = "picBox7";
            this.picBox7.Size = new System.Drawing.Size(65, 65);
            this.picBox7.TabIndex = 6;
            this.picBox7.TabStop = false;
            this.picBox7.Tag = "6";
            this.picBox7.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox8
            //
            this.picBox8.BackColor = System.Drawing.Color.Transparent;
            this.picBox8.Location = new System.Drawing.Point(228, 152);
            this.picBox8.Name = "picBox8";
            this.picBox8.Size = new System.Drawing.Size(65, 65);
            this.picBox8.TabIndex = 7;
            this.picBox8.TabStop = false;
            this.picBox8.Tag = "7";
            this.picBox8.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox9
            //
            this.picBox9.BackColor = System.Drawing.Color.Transparent;
            this.picBox9.Location = new System.Drawing.Point(30, 218);
            this.picBox9.Name = "picBox9";
            this.picBox9.Size = new System.Drawing.Size(65, 65);
            this.picBox9.TabIndex = 8;
            this.picBox9.TabStop = false;
            this.picBox9.Tag = "8";
            this.picBox9.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox10
            //
            this.picBox10.BackColor = System.Drawing.Color.Transparent;
            this.picBox10.Location = new System.Drawing.Point(96, 218);
            this.picBox10.Name = "picBox10";
            this.picBox10.Size = new System.Drawing.Size(65, 65);
            this.picBox10.TabIndex = 9;
            this.picBox10.TabStop = false;
            this.picBox10.Tag = "9";
            this.picBox10.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox11
            //
            this.picBox11.BackColor = System.Drawing.Color.Transparent;
            this.picBox11.Location = new System.Drawing.Point(162, 218);
            this.picBox11.Name = "picBox11";
            this.picBox11.Size = new System.Drawing.Size(65, 65);
            this.picBox11.TabIndex = 10;
            this.picBox11.TabStop = false;
            this.picBox11.Tag = "10";
            this.picBox11.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox12
            //
            this.picBox12.BackColor = System.Drawing.Color.Transparent;
            this.picBox12.Location = new System.Drawing.Point(228, 218);
            this.picBox12.Name = "picBox12";
            this.picBox12.Size = new System.Drawing.Size(65, 65);
            this.picBox12.TabIndex = 11;
            this.picBox12.TabStop = false;
            this.picBox12.Tag = "11";
            this.picBox12.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox13
            //
            this.picBox13.BackColor = System.Drawing.Color.Transparent;
            this.picBox13.Location = new System.Drawing.Point(30, 284);
            this.picBox13.Name = "picBox13";
            this.picBox13.Size = new System.Drawing.Size(65, 65);
            this.picBox13.TabIndex = 12;
            this.picBox13.TabStop = false;
            this.picBox13.Tag = "12";
            this.picBox13.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox14
            //
            this.picBox14.BackColor = System.Drawing.Color.Transparent;
            this.picBox14.Location = new System.Drawing.Point(96, 284);
            this.picBox14.Name = "picBox14";
            this.picBox14.Size = new System.Drawing.Size(65, 65);
            this.picBox14.TabIndex = 13;
            this.picBox14.TabStop = false;
            this.picBox14.Tag = "13";
            this.picBox14.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox15
            //
            this.picBox15.BackColor = System.Drawing.Color.Transparent;
            this.picBox15.Location = new System.Drawing.Point(162, 284);
            this.picBox15.Name = "picBox15";
            this.picBox15.Size = new System.Drawing.Size(65, 65);
            this.picBox15.TabIndex = 14;
            this.picBox15.TabStop = false;
            this.picBox15.Tag = "14";
            this.picBox15.Click += new System.EventHandler(this.picBox_Click);
            //
            // picBox16
            //
            this.picBox16.BackColor = System.Drawing.Color.Transparent;
            this.picBox16.Location = new System.Drawing.Point(228, 284);
            this.picBox16.Name = "picBox16";
            this.picBox16.Size = new System.Drawing.Size(65, 65);
            this.picBox16.TabIndex = 15;
            this.picBox16.TabStop = false;
            this.picBox16.Tag = "15";
            this.picBox16.Click += new System.EventHandler(this.picBox_Click);
            //
            // ilPictures
            //
            this.ilPictures.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilPictures.ImageStream")));
            this.ilPictures.TransparentColor = System.Drawing.Color.Transparent;
            this.ilPictures.Images.SetKeyName(0, "0.png");
            this.ilPictures.Images.SetKeyName(1, "1.png");
            this.ilPictures.Images.SetKeyName(2, "2.png");
            this.ilPictures.Images.SetKeyName(3, "3.png");
            this.ilPictures.Images.SetKeyName(4, "4.png");
            this.ilPictures.Images.SetKeyName(5, "5.png");
            this.ilPictures.Images.SetKeyName(6, "6.png");
            this.ilPictures.Images.SetKeyName(7, "7.png");
            this.ilPictures.Images.SetKeyName(8, "8.png");
            //
            // tmrShow
            //
            this.tmrShow.Interval = 3000;
            this.tmrShow.Tick += new System.EventHandler(this.tmrShow_Tick);
            //
            // tmrMatch
            //
            this.tmrMatch.Interval = 500;
            this.tmrMatch.Tick += new System.EventHandler(this.tmrMatch_Tick);
            //
            // lblGameTime
            //
            this.lblGameTime.AutoSize = true;
            this.lblGameTime.BackColor = System.Drawing.Color.Transparent;
            this.lblGameTime.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lblGameTime.Location = new System.Drawing.Point(319, 178);
            this.lblGameTime.Name = "lblGameTime";
            this.lblGameTime.Size = new System.Drawing.Size(63, 14);
            this.lblGameTime.TabIndex = 18;
            this.lblGameTime.Text = "已用时:";
            //
            // msGame
            //
            this.msGame.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tsmiGame,
            this.tsmiHelp});
            this.msGame.Location = new System.Drawing.Point(0, 0);
            this.msGame.Name = "msGame";
            this.msGame.Size = new System.Drawing.Size(477, 24);
            this.msGame.TabIndex = 20;
            this.msGame.Text = "menuStrip1";
            //
            // tsmiGame
            //
            this.tsmiGame.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tsmiNewGame,
            this.tsmiExit});
            this.tsmiGame.Name = "tsmiGame";
            this.tsmiGame.Size = new System.Drawing.Size(41, 20);
            this.tsmiGame.Text = "游戏";
            //
            // tsmiNewGame
            //
            this.tsmiNewGame.Name = "tsmiNewGame";
            this.tsmiNewGame.Size = new System.Drawing.Size(106, 22);
            this.tsmiNewGame.Text = "新游戏";
            this.tsmiNewGame.Click += new System.EventHandler(this.tsmiNewGame_Click);
            //
            // tsmiExit
            //
            this.tsmiExit.Name = "tsmiExit";
            this.tsmiExit.Size = new System.Drawing.Size(106, 22);
            this.tsmiExit.Text = "退出";
            this.tsmiExit.Click += new System.EventHandler(this.tsmiExit_Click);
            //
            // tsmiHelp
            //
            this.tsmiHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tsmiRule});
            this.tsmiHelp.Name = "tsmiHelp";
            this.tsmiHelp.Size = new System.Drawing.Size(41, 20);
            this.tsmiHelp.Text = "帮助";
            //
            // tsmiRule
            //
            this.tsmiRule.Name = "tsmiRule";
            this.tsmiRule.Size = new System.Drawing.Size(118, 22);
            this.tsmiRule.Text = "游戏规则";
            this.tsmiRule.Click += new System.EventHandler(this.tsmiRule_Click);
            //
            // tmrGame
            //
            this.tmrGame.Interval = 1000;
            this.tmrGame.Tick += new System.EventHandler(this.tmrGame_Tick);
            //
            // lblCostTime
            //
            this.lblCostTime.AutoSize = true;
            this.lblCostTime.BackColor = System.Drawing.Color.Transparent;
            this.lblCostTime.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lblCostTime.ForeColor = System.Drawing.Color.Red;
            this.lblCostTime.Location = new System.Drawing.Point(391, 178);
            this.lblCostTime.Name = "lblCostTime";
            this.lblCostTime.Size = new System.Drawing.Size(0, 14);
            this.lblCostTime.TabIndex = 21;
            //
            // lblGameRecord
            //
            this.lblGameRecord.AutoSize = true;
            this.lblGameRecord.BackColor = System.Drawing.Color.Transparent;
            this.lblGameRecord.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lblGameRecord.Location = new System.Drawing.Point(317, 138);
            this.lblGameRecord.Name = "lblGameRecord";
            this.lblGameRecord.Size = new System.Drawing.Size(77, 14);
            this.lblGameRecord.TabIndex = 22;
            this.lblGameRecord.Text = "最高记录:";
            //
            // lblRecord
            //
            this.lblRecord.AutoSize = true;
            this.lblRecord.BackColor = System.Drawing.Color.Transparent;
            this.lblRecord.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lblRecord.Location = new System.Drawing.Point(392, 137);
            this.lblRecord.Name = "lblRecord";
            this.lblRecord.Size = new System.Drawing.Size(28, 14);
            this.lblRecord.TabIndex = 23;
            this.lblRecord.Text = "0秒";
            //
            // BoxesForm
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Azure;
            this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
            this.ClientSize = new System.Drawing.Size(477, 390);
            this.Controls.Add(this.lblRecord);
            this.Controls.Add(this.lblGameRecord);
            this.Controls.Add(this.lblCostTime);
            this.Controls.Add(this.lblGameTime);
            this.Controls.Add(this.picBox1);
            this.Controls.Add(this.picBox16);
            this.Controls.Add(this.picBox5);
            this.Controls.Add(this.picBox12);
            this.Controls.Add(this.picBox3);
            this.Controls.Add(this.picBox15);
            this.Controls.Add(this.picBox10);
            this.Controls.Add(this.picBox8);
            this.Controls.Add(this.picBox4);
            this.Controls.Add(this.picBox9);
            this.Controls.Add(this.picBox6);
            this.Controls.Add(this.picBox14);
            this.Controls.Add(this.picBox7);
            this.Controls.Add(this.picBox11);
            this.Controls.Add(this.picBox2);
            this.Controls.Add(this.picBox13);
            this.Controls.Add(this.msGame);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.msGame;
            this.MaximizeBox = false;
            this.Name = "BoxesForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "图片配对";
            this.Load += new System.EventHandler(this.BoxesForm_Load);
            ((System.ComponentModel.ISupportInitialize)(this.picBox1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox3)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox4)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox5)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox6)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox7)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox8)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox9)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox10)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox11)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox12)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox13)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox14)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox15)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.picBox16)).EndInit();
            this.msGame.ResumeLayout(false);
            this.msGame.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.PictureBox picBox1;
        private System.Windows.Forms.PictureBox picBox2;
        private System.Windows.Forms.PictureBox picBox3;
        private System.Windows.Forms.PictureBox picBox4;
        private System.Windows.Forms.PictureBox picBox5;
        private System.Windows.Forms.PictureBox picBox6;
        private System.Windows.Forms.PictureBox picBox7;
        private System.Windows.Forms.PictureBox picBox8;
        private System.Windows.Forms.PictureBox picBox9;
        private System.Windows.Forms.PictureBox picBox10;
        private System.Windows.Forms.PictureBox picBox11;
        private System.Windows.Forms.PictureBox picBox12;
        private System.Windows.Forms.PictureBox picBox13;
        private System.Windows.Forms.PictureBox picBox14;
        private System.Windows.Forms.PictureBox picBox15;
        private System.Windows.Forms.PictureBox picBox16;
        private System.Windows.Forms.ImageList ilPictures;
        private System.Windows.Forms.Timer tmrShow;
        private System.Windows.Forms.Timer tmrMatch;
        private System.Windows.Forms.Label lblGameTime;
        private System.Windows.Forms.MenuStrip msGame;
        private System.Windows.Forms.ToolStripMenuItem tsmiGame;
        private System.Windows.Forms.ToolStripMenuItem tsmiNewGame;
        private System.Windows.Forms.ToolStripMenuItem tsmiExit;
        private System.Windows.Forms.ToolStripMenuItem tsmiHelp;
        private System.Windows.Forms.ToolStripMenuItem tsmiRule;
        private System.Windows.Forms.Timer tmrGame;
        private System.Windows.Forms.Label lblCostTime;
        private System.Windows.Forms.Label lblGameRecord;
        private System.Windows.Forms.Label lblRecord;
    }
}

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值