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

📄 form1.cs

📁 这是一个自己做的拼图游戏
💻 CS
📖 第 1 页 / 共 5 页
字号:
			this.button38.BackColor = System.Drawing.Color.White;
			this.button38.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button38.ForeColor = System.Drawing.Color.Black;
			this.button38.Location = new System.Drawing.Point(617, 314);
			this.button38.Name = "button38";
			this.button38.Size = new System.Drawing.Size(64, 70);
			this.button38.TabIndex = 46;
			this.button38.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button38_MouseDown);
			// 
			// button39
			// 
			this.button39.BackColor = System.Drawing.Color.White;
			this.button39.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button39.ForeColor = System.Drawing.Color.Black;
			this.button39.Location = new System.Drawing.Point(754, 314);
			this.button39.Name = "button39";
			this.button39.Size = new System.Drawing.Size(65, 70);
			this.button39.TabIndex = 47;
			this.button39.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button39_MouseDown);
			// 
			// button40
			// 
			this.button40.BackColor = System.Drawing.Color.White;
			this.button40.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button40.ForeColor = System.Drawing.Color.Black;
			this.button40.Location = new System.Drawing.Point(549, 15);
			this.button40.Name = "button40";
			this.button40.Size = new System.Drawing.Size(64, 70);
			this.button40.TabIndex = 48;
			this.button40.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button40_MouseDown);
			// 
			// button41
			// 
			this.button41.BackColor = System.Drawing.Color.White;
			this.button41.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button41.ForeColor = System.Drawing.Color.Black;
			this.button41.Location = new System.Drawing.Point(480, 90);
			this.button41.Name = "button41";
			this.button41.Size = new System.Drawing.Size(64, 70);
			this.button41.TabIndex = 49;
			this.button41.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button41_MouseDown);
			// 
			// button42
			// 
			this.button42.BackColor = System.Drawing.Color.White;
			this.button42.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button42.ForeColor = System.Drawing.Color.Black;
			this.button42.Location = new System.Drawing.Point(686, 15);
			this.button42.Name = "button42";
			this.button42.Size = new System.Drawing.Size(64, 70);
			this.button42.TabIndex = 50;
			this.button42.Click += new System.EventHandler(this.button42_Click);
			this.button42.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button42_MouseDown);
			// 
			// button43
			// 
			this.button43.BackColor = System.Drawing.Color.White;
			this.button43.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button43.ForeColor = System.Drawing.Color.Black;
			this.button43.Location = new System.Drawing.Point(617, 90);
			this.button43.Name = "button43";
			this.button43.Size = new System.Drawing.Size(64, 70);
			this.button43.TabIndex = 51;
			this.button43.Click += new System.EventHandler(this.button43_Click);
			this.button43.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button43_MouseDown);
			// 
			// button44
			// 
			this.button44.BackColor = System.Drawing.Color.White;
			this.button44.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button44.ForeColor = System.Drawing.Color.Black;
			this.button44.Location = new System.Drawing.Point(549, 164);
			this.button44.Name = "button44";
			this.button44.Size = new System.Drawing.Size(64, 70);
			this.button44.TabIndex = 52;
			this.button44.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button44_MouseDown);
			// 
			// button45
			// 
			this.button45.BackColor = System.Drawing.Color.White;
			this.button45.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button45.ForeColor = System.Drawing.Color.Black;
			this.button45.Location = new System.Drawing.Point(480, 239);
			this.button45.Name = "button45";
			this.button45.Size = new System.Drawing.Size(64, 70);
			this.button45.TabIndex = 53;
			this.button45.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button45_MouseDown);
			// 
			// button46
			// 
			this.button46.BackColor = System.Drawing.Color.White;
			this.button46.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button46.ForeColor = System.Drawing.Color.Black;
			this.button46.Location = new System.Drawing.Point(754, 90);
			this.button46.Name = "button46";
			this.button46.Size = new System.Drawing.Size(65, 70);
			this.button46.TabIndex = 54;
			this.button46.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button46_MouseDown);
			// 
			// button47
			// 
			this.button47.BackColor = System.Drawing.Color.White;
			this.button47.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button47.ForeColor = System.Drawing.Color.Black;
			this.button47.Location = new System.Drawing.Point(686, 164);
			this.button47.Name = "button47";
			this.button47.Size = new System.Drawing.Size(64, 70);
			this.button47.TabIndex = 55;
			this.button47.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button47_MouseDown);
			// 
			// button48
			// 
			this.button48.BackColor = System.Drawing.Color.White;
			this.button48.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button48.ForeColor = System.Drawing.Color.Black;
			this.button48.Location = new System.Drawing.Point(617, 239);
			this.button48.Name = "button48";
			this.button48.Size = new System.Drawing.Size(64, 70);
			this.button48.TabIndex = 56;
			this.button48.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button48_MouseDown);
			// 
			// button49
			// 
			this.button49.BackColor = System.Drawing.Color.White;
			this.button49.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button49.ForeColor = System.Drawing.Color.Black;
			this.button49.Location = new System.Drawing.Point(549, 314);
			this.button49.Name = "button49";
			this.button49.Size = new System.Drawing.Size(64, 70);
			this.button49.TabIndex = 57;
			this.button49.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button49_MouseDown);
			// 
			// button50
			// 
			this.button50.BackColor = System.Drawing.Color.White;
			this.button50.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button50.ForeColor = System.Drawing.Color.Black;
			this.button50.Location = new System.Drawing.Point(754, 239);
			this.button50.Name = "button50";
			this.button50.Size = new System.Drawing.Size(65, 70);
			this.button50.TabIndex = 58;
			this.button50.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button50_MouseDown);
			// 
			// button51
			// 
			this.button51.BackColor = System.Drawing.Color.White;
			this.button51.Cursor = System.Windows.Forms.Cursors.Hand;
			this.button51.ForeColor = System.Drawing.Color.Black;
			this.button51.Location = new System.Drawing.Point(686, 314);
			this.button51.Name = "button51";
			this.button51.Size = new System.Drawing.Size(64, 70);
			this.button51.TabIndex = 59;
			this.button51.MouseDown += new System.Windows.Forms.MouseEventHandler(this.button51_MouseDown);
			// 
			// pictureBox1
			// 
			this.pictureBox1.Location = new System.Drawing.Point(350, 90);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(116, 127);
			this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
			this.pictureBox1.TabIndex = 60;
			this.pictureBox1.TabStop = false;
			// 
			// button52
			// 
			this.button52.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(224)), ((System.Byte)(192)));
			this.button52.Cursor = System.Windows.Forms.Cursors.No;
			this.button52.Enabled = false;
			this.button52.Location = new System.Drawing.Point(350, 254);
			this.button52.Name = "button52";
			this.button52.Size = new System.Drawing.Size(116, 45);
			this.button52.TabIndex = 61;
			this.button52.Text = "退出";
			this.button52.Click += new System.EventHandler(this.button52_Click);
			// 
			// label1
			// 
			this.label1.Font = new System.Drawing.Font("宋体", 12.22642F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.ForeColor = System.Drawing.Color.White;
			this.label1.Location = new System.Drawing.Point(350, 52);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(109, 38);
			this.label1.TabIndex = 62;
			this.label1.Click += new System.EventHandler(this.label1_Click);
			// 
			// timer1
			// 
			this.timer1.Tick += new System.EventHandler(this.timer1_Tick_1);
			// 
			// label2
			// 
			this.label2.Font = new System.Drawing.Font("宋体", 10.18868F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label2.ForeColor = System.Drawing.Color.Blue;
			this.label2.Location = new System.Drawing.Point(344, 224);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(136, 22);
			this.label2.TabIndex = 63;
			this.label2.Click += new System.EventHandler(this.label2_Click);
			// 
			// label3
			// 
			this.label3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.label3.Font = new System.Drawing.Font("新宋体", 12.22642F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label3.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(0)), ((System.Byte)(64)));
			this.label3.Location = new System.Drawing.Point(27, 396);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(509, 84);
			this.label3.TabIndex = 64;
			this.label3.Text = "请 点 开 始";
			this.label3.Click += new System.EventHandler(this.label3_Click);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.AutoScroll = true;
			this.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(128)), ((System.Byte)(255)));
			this.ClientSize = new System.Drawing.Size(836, 502);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.button52);
			this.Controls.Add(this.pictureBox1);
			this.Controls.Add(this.button51);
			this.Controls.Add(this.button50);
			this.Controls.Add(this.button49);
			this.Controls.Add(this.button48);
			this.Controls.Add(this.button47);
			this.Controls.Add(this.button46);
			this.Controls.Add(this.button45);
			this.Controls.Add(this.button44);
			this.Controls.Add(this.button43);
			this.Controls.Add(this.button42);
			this.Controls.Add(this.button41);
			this.Controls.Add(this.button40);
			this.Controls.Add(this.button39);
			this.Controls.Add(this.button38);
			this.Controls.Add(this.button37);
			this.Controls.Add(this.button36);
			this.Controls.Add(this.button35);
			this.Controls.Add(this.button34);
			this.Controls.Add(this.button33);
			this.Controls.Add(this.button32);
			this.Controls.Add(this.button31);
			this.Controls.Add(this.button30);
			this.Controls.Add(this.button29);
			this.Controls.Add(this.button28);
			this.Controls.Add(this.button27);
			this.Controls.Add(this.button26);
			this.Controls.Add(this.button25);
			this.Controls.Add(this.button24);
			this.Controls.Add(this.button23);
			this.Controls.Add(this.button22);
			this.Controls.Add(this.button21);
			this.Controls.Add(this.button20);
			this.Controls.Add(this.button19);
			this.Controls.Add(this.button18);
			this.Controls.Add(this.button17);
			this.Controls.Add(this.button16);
			this.Controls.Add(this.button15);
			this.Controls.Add(this.button14);
			this.Controls.Add(this.button13);
			this.Controls.Add(this.button12);
			this.Controls.Add(this.button11);
			this.Controls.Add(this.button10);
			this.Controls.Add(this.button9);
			this.Controls.Add(this.button8);
			this.Controls.Add(this.button7);
			this.Controls.Add(this.button6);
			this.Controls.Add(this.button5);
			this.Controls.Add(this.button4);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.button2);
			this.Controls.Add(this.button1);
			this.MaximumSize = new System.Drawing.Size(1024, 780);
			this.Name = "Form1";
			this.Text = "拼 图 游 戏";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}
		private void Form1_Load(object sender, System.EventArgs e)
		{
			MessageBox.Show("点击确定,然后可以开始游戏\n注意:本游戏很菜,玩一次后就没有玩的意义了,谢谢合作\n\n感谢忍术馆");
				t1.Interval = 1000;
				t1.Tick +=new EventHandler(timer1_Tick_1);

				second++;
		}
//********************************************************************************************************************************************
		//下面这个方法作用是:判断是否已经把图拼好,并询问是不是再玩
		public void booltime()
		{
			if(booltime0==true&&booltime1==true&&booltime2==true&&booltime3==true&&booltime4==true&&booltime5==true&&booltime6==true&&booltime7==true&&booltime8==true&&booltime9==true&&booltime10==true&&booltime11==true&&booltime12==true&&booltime13==true&&booltime14==true&&booltime15==true&&booltime16==true&&booltime17==true&&booltime18==true&&booltime19==true&&booltime20==true&&booltime21==true&&booltime22==true&&booltime23==true&&booltime24==true)
			//这个if用于判断是否已经拼对所有的图
			{
				DialogResult result0;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -