• 大小: 3.38MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-10
  • 语言: C#
  • 标签: C#  拼图  

资源简介

上学时候的课程设计,是个C#编写的拼图游戏,可以自主选择图片进行游戏。学生党们那去吧..... 为了积分....

资源截图

代码片段和文件信息

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

namespace _123
{
    public partial class Form1 : Form
    {
        

        public int time = 0;

        public int bu = 0;

        public bool play = false;

        public Bitmap[] bmpcopy = new Bitmap[9];

        public Bitmap bmp;

        public Form1()
        {
            InitializeComponent();
        }

        private void PB1_Click(object sender EventArgs e)
        {
            if (PB2.BackgroundImage == null)
            {
                PB2.BackgroundImage = PB1.BackgroundImage;
                PB1.BackgroundImage = null;
            }
            if (PB4.BackgroundImage == null)
            {
                PB4.BackgroundImage = PB1.BackgroundImage;
                PB1.BackgroundImage = null;
            }
        }

        private void PB3_Click(object sender EventArgs e)
        {
            if (PB2.BackgroundImage == null)
            {
                PB2.BackgroundImage = PB3.BackgroundImage;
                PB3.BackgroundImage = null;
            }
            if (PB6.BackgroundImage == null)
            {
                PB6.BackgroundImage = PB3.BackgroundImage;
                PB3.BackgroundImage = null;
            }
        }

        private void PB7_Click(object sender EventArgs e)
        {
            if (PB4.BackgroundImage == null)
            {
                PB4.BackgroundImage = PB7.BackgroundImage;
                PB7.BackgroundImage = null;
            }
            if (PB8.BackgroundImage == null)
            {
                PB8.BackgroundImage = PB7.BackgroundImage;
                PB7.BackgroundImage = null;
            }
        }

        private void PB9_Click(object sender EventArgs e)
        {
            if (PB6.BackgroundImage == null)
            {
                PB6.BackgroundImage = PB9.BackgroundImage;
                PB9.BackgroundImage = null;
            }
            if (PB8.BackgroundImage == null)
            {
                PB8.BackgroundImage = PB9.BackgroundImage;
                PB9.BackgroundImage = null;
            }
        }

        private void PB4_Click(object sender EventArgs e)
        {
            if (PB1.BackgroundImage == null)
            {
                PB1.BackgroundImage = PB4.BackgroundImage;
                PB4.BackgroundImage = null;
            }
            if (PB7.BackgroundImage == null)
            {
                PB7.BackgroundImage = PB4.BackgroundImage;
                PB4.BackgroundImage = null;
            }
            if (PB5.BackgroundImage == null)
            {
                PB5.BackgroundImage = PB4.BackgroundImage;
                PB4.BackgroundImage = null;
            }
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3675  2015-01-09 12:43  趣味拼图\123\123.csproj

     文件        490  2010-03-17 22:39  趣味拼图\123\bin\Debug\123.vshost.exe.manifest

     文件     877568  2015-01-09 12:43  趣味拼图\123\bin\Debug\趣味拼图.exe

     文件      34304  2015-01-09 12:43  趣味拼图\123\bin\Debug\趣味拼图.pdb

     文件      24224  2015-01-09 12:43  趣味拼图\123\bin\Debug\趣味拼图.vshost.exe

     文件      19298  2015-01-07 22:46  趣味拼图\123\Form1.cs

     文件      25627  2015-01-07 22:46  趣味拼图\123\Form1.Designer.cs

     文件    1286747  2015-01-07 22:40  趣味拼图\123\Form1.resx

     文件       2805  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\123.csproj.FileListAbsolute.txt

     文件        977  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\123.csproj.GenerateResource.Cache

     文件       9046  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\123.csprojResolveAssemblyReference.cache

     文件      12356  2015-01-07 22:46  趣味拼图\123\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6944  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        208  2015-01-07 22:46  趣味拼图\123\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        366  2015-01-07 22:46  趣味拼图\123\obj\x86\Debug\GenerateResource.write.1.tlog

     文件     854405  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\_123.Form1.resources

     文件        180  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\_123.Properties.Resources.resources

     文件     877568  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\趣味拼图.exe

     文件      34304  2015-01-09 12:43  趣味拼图\123\obj\x86\Debug\趣味拼图.pdb

     文件        485  2015-01-07 22:46  趣味拼图\123\Program.cs

     文件       1350  2015-01-07 22:46  趣味拼图\123\Properties\AssemblyInfo.cs

     文件       2856  2015-01-07 22:46  趣味拼图\123\Properties\Resources.Designer.cs

     文件       5612  2015-01-07 22:46  趣味拼图\123\Properties\Resources.resx

     文件       1087  2015-01-07 22:46  趣味拼图\123\Properties\Settings.Designer.cs

     文件        249  2015-01-07 22:46  趣味拼图\123\Properties\Settings.settings

     文件        851  2015-01-07 22:46  趣味拼图\123.sln

    ..A..H.     16896  2015-01-07 22:46  趣味拼图\123.suo

    ..A..H.     45056  2015-01-09 12:44  趣味拼图\123.v12.suo

     目录          0  2015-01-07 22:44  趣味拼图\123\obj\x86\Debug\TempPE

     目录          0  2015-12-24 16:19  趣味拼图\123\obj\x86\Debug

............此处省略11个文件信息

评论

共有 条评论