亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.cs

?? c#程序部分代碼我沒有用過是我的老師給我的用于arcGIS engine 開發的
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace cs_nineplay
{
	/// <summary>
	/// Form1 的摘要說明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Button button1;
		private System.Windows.Forms.Button button6;
		private System.Windows.Forms.Button button9;
		private System.Windows.Forms.Button button8;
		private System.Windows.Forms.Button button5;
		private System.Windows.Forms.Button button2;
		private System.Windows.Forms.Button button7;
		private System.Windows.Forms.Button button4;
		private System.Windows.Forms.Button btnEnd;
		private System.Windows.Forms.Button btnStart;
		private System.Windows.Forms.Button button10;
		private System.Windows.Forms.Button button11;
		private System.Windows.Forms.Button button3;
		private System.Windows.Forms.Label lblTime;
		private System.Windows.Forms.Label lblCount;
		private System.Windows.Forms.Timer tmrTime;
		private System.ComponentModel.IContainer components;

		public Form1()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.label1 = new System.Windows.Forms.Label();
			this.lblTime = new System.Windows.Forms.Label();
			this.lblCount = new System.Windows.Forms.Label();
			this.button1 = new System.Windows.Forms.Button();
			this.button6 = new System.Windows.Forms.Button();
			this.button9 = new System.Windows.Forms.Button();
			this.button8 = new System.Windows.Forms.Button();
			this.button5 = new System.Windows.Forms.Button();
			this.button2 = new System.Windows.Forms.Button();
			this.button7 = new System.Windows.Forms.Button();
			this.button4 = new System.Windows.Forms.Button();
			this.btnEnd = new System.Windows.Forms.Button();
			this.btnStart = new System.Windows.Forms.Button();
			this.tmrTime = new System.Windows.Forms.Timer(this.components);
			this.button10 = new System.Windows.Forms.Button();
			this.button11 = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.label1.Font = new System.Drawing.Font("宋體", 24F);
			this.label1.Location = new System.Drawing.Point(24, 32);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(248, 32);
			this.label1.TabIndex = 0;
			this.label1.Text = "九宮格益智游戲";
			// 
			// lblTime
			// 
			this.lblTime.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblTime.Font = new System.Drawing.Font("宋體", 14F);
			this.lblTime.Location = new System.Drawing.Point(176, 96);
			this.lblTime.Name = "lblTime";
			this.lblTime.TabIndex = 1;
			this.lblTime.Text = "秒數:0秒";
			// 
			// lblCount
			// 
			this.lblCount.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.lblCount.Font = new System.Drawing.Font("宋體", 14F);
			this.lblCount.Location = new System.Drawing.Point(176, 136);
			this.lblCount.Name = "lblCount";
			this.lblCount.TabIndex = 2;
			this.lblCount.Text = "次數:0次";
			// 
			// button1
			// 
			this.button1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button1.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button1.Location = new System.Drawing.Point(32, 72);
			this.button1.Name = "button1";
			this.button1.Size = new System.Drawing.Size(40, 40);
			this.button1.TabIndex = 3;
			this.button1.Text = "1";
			// 
			// button6
			// 
			this.button6.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button6.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button6.Location = new System.Drawing.Point(112, 112);
			this.button6.Name = "button6";
			this.button6.Size = new System.Drawing.Size(40, 40);
			this.button6.TabIndex = 5;
			this.button6.Text = "6";
			// 
			// button9
			// 
			this.button9.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button9.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button9.Location = new System.Drawing.Point(112, 152);
			this.button9.Name = "button9";
			this.button9.Size = new System.Drawing.Size(40, 40);
			this.button9.TabIndex = 6;
			this.button9.Text = "9";
			// 
			// button8
			// 
			this.button8.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button8.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button8.Location = new System.Drawing.Point(72, 152);
			this.button8.Name = "button8";
			this.button8.Size = new System.Drawing.Size(40, 40);
			this.button8.TabIndex = 7;
			this.button8.Text = "8";
			// 
			// button5
			// 
			this.button5.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button5.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button5.Location = new System.Drawing.Point(72, 112);
			this.button5.Name = "button5";
			this.button5.Size = new System.Drawing.Size(40, 40);
			this.button5.TabIndex = 8;
			this.button5.Text = "5";
			// 
			// button2
			// 
			this.button2.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button2.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button2.Location = new System.Drawing.Point(72, 72);
			this.button2.Name = "button2";
			this.button2.Size = new System.Drawing.Size(40, 40);
			this.button2.TabIndex = 9;
			this.button2.Text = "2";
			// 
			// button7
			// 
			this.button7.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button7.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button7.Location = new System.Drawing.Point(32, 152);
			this.button7.Name = "button7";
			this.button7.Size = new System.Drawing.Size(40, 40);
			this.button7.TabIndex = 10;
			this.button7.Text = "7";
			// 
			// button4
			// 
			this.button4.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button4.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button4.Location = new System.Drawing.Point(32, 112);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(40, 40);
			this.button4.TabIndex = 11;
			this.button4.Text = "4";
			// 
			// btnEnd
			// 
			this.btnEnd.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.btnEnd.Font = new System.Drawing.Font("宋體", 14F);
			this.btnEnd.Location = new System.Drawing.Point(104, 208);
			this.btnEnd.Name = "btnEnd";
			this.btnEnd.Size = new System.Drawing.Size(56, 32);
			this.btnEnd.TabIndex = 12;
			this.btnEnd.Text = "結束";
			this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
			// 
			// btnStart
			// 
			this.btnStart.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(255)));
			this.btnStart.Font = new System.Drawing.Font("宋體", 14F);
			this.btnStart.Location = new System.Drawing.Point(32, 208);
			this.btnStart.Name = "btnStart";
			this.btnStart.Size = new System.Drawing.Size(56, 32);
			this.btnStart.TabIndex = 13;
			this.btnStart.Text = "開始";
			this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
			// 
			// tmrTime
			// 
			this.tmrTime.Tick += new System.EventHandler(this.timer1_Tick);
			// 
			// button10
			// 
			this.button10.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button10.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button10.Location = new System.Drawing.Point(40, 112);
			this.button10.Name = "button10";
			this.button10.Size = new System.Drawing.Size(40, 40);
			this.button10.TabIndex = 11;
			this.button10.Text = "4";
			this.button10.Click += new System.EventHandler(this.Button_Click);
			// 
			// button11
			// 
			this.button11.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button11.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button11.Location = new System.Drawing.Point(80, 112);
			this.button11.Name = "button11";
			this.button11.Size = new System.Drawing.Size(40, 40);
			this.button11.TabIndex = 8;
			this.button11.Text = "5";
			this.button11.Click += new System.EventHandler(this.Button_Click);
			// 
			// button3
			// 
			this.button3.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(255)), ((System.Byte)(255)));
			this.button3.Font = new System.Drawing.Font("宋體", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.button3.Location = new System.Drawing.Point(112, 72);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(40, 40);
			this.button3.TabIndex = 4;
			this.button3.Text = "3";
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(296, 270);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.btnStart,
																		  this.btnEnd,
																		  this.button4,
																		  this.button7,
																		  this.button2,
																		  this.button5,
																		  this.button8,
																		  this.button9,
																		  this.button6,
																		  this.button1,
																		  this.lblCount,
																		  this.lblTime,
																		  this.label1,
																		  this.button10,
																		  this.button11,
																		  this.button3});
			this.Name = "Form1";
			this.Text = "Form1";
			this.Load += new System.EventHandler(this.Form1_Load);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// 應用程序的主入口點。
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}
		Color OnColor = Color.Coral;
		Color OffColor = Color.Yellow;
		int seconds;
		int count1;

		int[,] ChangeCells = {	{-1, -1, -1, -1, -1}, 
				{1, 2, 4, 5, -1}, 
				{2, 1, 3, -1, -1}, 
				{3, 2, 5, 6, -1}, 
				{4, 1, 7, -1, -1}, 
				{5, 2, 4, 6, 8}, 
				{6, 3, 9, -1, -1}, 
				{7, 4, 5, 8, -1}, 
				{8, 7, 9, -1, -1}, 
				{9, 5, 6, 8, -1} 
							 };

		Button[] Buttons = new Button[10];

		private void Button_Click(object sender, System.EventArgs e)
		{
			Button btnHit = (Button)sender;
			int No = int.Parse(btnHit.Text);
			for(int i=0;i<5;i++)
			{
				int X = ChangeCells[No, i];
				if (X != -1)
				{
					if (Buttons[X].BackColor.ToArgb() == OffColor.ToArgb())
						Buttons[X].BackColor = OnColor;
					else
						Buttons[X].BackColor = OffColor;
				}
			}
			count1 += 1;
			lblCount.Text = "次數 : " + count1.ToString() + "次";
			int sum = 0;
			for(int i=1;i<=9;i++)
			{
				if (Buttons[i].BackColor.ToArgb() == OnColor.ToArgb())
					sum += 1;
			}
			if (sum == 8 && Buttons[5].BackColor.ToArgb() == OffColor.ToArgb())
			{
				btnStart.Enabled = true;
				btnEnd.Enabled = false;
				tmrTime.Enabled = false;
				MessageBox.Show("恭喜! 過關....");
				for(int i=1;i<=9;i++)
					Buttons[i].Enabled = false;
			}
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			btnStart.Enabled = true;
			btnEnd.Enabled = false;
			button1.Click += new EventHandler(Button_Click);
			button2.Click += new EventHandler(Button_Click);
			button3.Click += new EventHandler(Button_Click);
			button4.Click += new EventHandler(Button_Click);
			button5.Click += new EventHandler(Button_Click);
			button6.Click += new EventHandler(Button_Click);
			button7.Click += new EventHandler(Button_Click);
			button8.Click += new EventHandler(Button_Click);
			button9.Click += new EventHandler(Button_Click);
			Buttons[1] = button1;
			Buttons[2] = button2;
			Buttons[3] = button3;
			Buttons[4] = button4;
			Buttons[5] = button5;
			Buttons[6] = button6;
			Buttons[7] = button7;
			Buttons[8] = button8;
			Buttons[9] = button9;
			for(int i=1;i<=9;i++)
				Buttons[i].Enabled = false;

		}


		private void timer1_Tick(object sender, System.EventArgs e)
		{
			seconds += 1;
			lblTime.Text = "秒數: " + seconds.ToString() + " 秒";
  
		}

		private void btnEnd_Click(object sender, System.EventArgs e)
		{
		   Application.Exit();
		}

		private void btnStart_Click(object sender, System.EventArgs e)
		{
			count1 = 0;
			seconds = 0;
			lblCount.Text = "次數 : " + count1.ToString() + "次";
			lblTime.Text = "秒數 : " + seconds.ToString() + "次";
			Random r = new Random();
			for(int i=1;i<=9;i++)
			{
				Buttons[i].Enabled = true;
				if (r.Next(1,10) > 5)
					Buttons[i].BackColor = OnColor;
				else
					Buttons[i].BackColor = OffColor;
			}
			seconds = 0;
			tmrTime.Enabled = true;
			btnStart.Enabled = false;
			btnEnd.Enabled = true;

		}

		
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线不卡中文字幕| 国产最新精品免费| 在线免费一区三区| 亚洲一区二区三区四区不卡| 欧美性一二三区| 日本不卡不码高清免费观看| 日韩精品中文字幕一区二区三区 | 日韩精品一区二区三区在线观看 | 久久99精品国产.久久久久久| 欧美一级黄色大片| 国产一区二区三区国产| 国产精品亲子乱子伦xxxx裸| 色av成人天堂桃色av| 无吗不卡中文字幕| 精品99一区二区三区| 成人黄动漫网站免费app| 一区二区三区四区视频精品免费| 欧美精品自拍偷拍| 国产精品影音先锋| 亚洲一区二区欧美日韩| 精品国精品国产尤物美女| eeuss鲁片一区二区三区在线观看| 亚洲午夜精品网| 久久综合九色综合欧美亚洲| www.99精品| 美腿丝袜在线亚洲一区| 中文字幕一区二区三区在线不卡| 欧美无砖砖区免费| 国产一区二区三区在线观看免费视频 | 宅男在线国产精品| 国产成人精品1024| 亚洲一二三区在线观看| 精品成人佐山爱一区二区| 99国产精品久久久久| 蜜桃91丨九色丨蝌蚪91桃色| 亚洲视频免费在线| 精品久久久久香蕉网| jlzzjlzz欧美大全| 麻豆精品一二三| 亚洲一区二区中文在线| 精品黑人一区二区三区久久| 在线免费亚洲电影| 成人午夜免费av| 另类调教123区 | 在线播放欧美女士性生活| 国产精品一区二区久久不卡 | 日韩写真欧美这视频| 99久久婷婷国产精品综合| 久久精品国产免费| 亚洲国产欧美另类丝袜| 国产精品久久久久影院| 日韩精品一区二区三区老鸭窝| 在线观看不卡视频| 成人妖精视频yjsp地址| 毛片av中文字幕一区二区| 亚洲主播在线观看| 亚洲免费在线看| 国产精品看片你懂得| 精品欧美久久久| 51午夜精品国产| 欧美吞精做爰啪啪高潮| 91免费观看在线| aa级大片欧美| 波多野结衣中文字幕一区| 国产伦精品一区二区三区在线观看| 日本亚洲免费观看| 天堂va蜜桃一区二区三区| 亚洲国产va精品久久久不卡综合| 亚洲丝袜另类动漫二区| 国产精品麻豆视频| 国产精品久久久久三级| 国产精品网站在线| 18欧美亚洲精品| 综合久久久久久| 亚洲天天做日日做天天谢日日欢 | 日韩美女精品在线| 国产精品动漫网站| 18涩涩午夜精品.www| 亚洲男人的天堂av| 洋洋av久久久久久久一区| 一区二区三区产品免费精品久久75| 伊人婷婷欧美激情| 亚洲一区二区三区美女| 天天色天天操综合| 蜜芽一区二区三区| 国内精品国产三级国产a久久| 久久99热这里只有精品| 国产精品一区二区x88av| 国产成人综合在线| 91丨九色丨黑人外教| 色香蕉成人二区免费| 欧美日韩成人综合| 精品久久五月天| 欧美大尺度电影在线| 国产精品久久久久永久免费观看| 国产网站一区二区| 国产精品三级视频| 亚洲精品综合在线| 亚洲午夜激情网站| 美女视频黄a大片欧美| 国产一区二区三区美女| 不卡一卡二卡三乱码免费网站| 色婷婷av一区| 69p69国产精品| 久久精品免费在线观看| 亚洲天堂精品在线观看| 日韩vs国产vs欧美| 国产69精品久久久久毛片| 91精品福利视频| 欧美成人一区二区三区片免费 | 国产精品资源在线观看| www.欧美精品一二区| 欧美精品久久久久久久多人混战| 日韩欧美第一区| 综合在线观看色| 蜜臀av一级做a爰片久久| 成人开心网精品视频| 欧美福利一区二区| 国产精品美女一区二区在线观看| 午夜亚洲福利老司机| 成人午夜视频在线| 91麻豆精品国产| 亚洲欧美色综合| 久草精品在线观看| 欧美三级日韩三级| 日本一区二区在线不卡| 日韩黄色免费网站| 色综合久久中文字幕综合网| 久久亚洲综合色一区二区三区| 亚洲女性喷水在线观看一区| 国产一区中文字幕| 51精品视频一区二区三区| 亚洲丝袜自拍清纯另类| 国产麻豆91精品| 欧美一区二区三区视频| 亚洲狠狠丁香婷婷综合久久久| 国产一区二区毛片| 日韩一本二本av| 亚洲成人精品一区| 色综合视频在线观看| 国产目拍亚洲精品99久久精品| 日韩激情在线观看| 欧美少妇一区二区| 亚洲婷婷综合久久一本伊一区| 国产精品18久久久久久久网站| 欧美精品99久久久**| 亚洲欧美一区二区三区孕妇| 国产69精品一区二区亚洲孕妇| 精品日韩一区二区| 日本aⅴ亚洲精品中文乱码| 欧日韩精品视频| 亚洲欧美福利一区二区| 成人av网站在线观看| 国产欧美一区二区三区鸳鸯浴| 美脚の诱脚舐め脚责91| 日韩亚洲欧美成人一区| 日韩国产精品久久| 欧美一区二区三区免费在线看| 亚洲午夜免费福利视频| 日本高清不卡视频| 一区二区成人在线视频| 色婷婷亚洲综合| 一区二区三区日韩欧美精品| 91视视频在线直接观看在线看网页在线看| 久久精品夜夜夜夜久久| 国产精品自拍三区| 欧美国产禁国产网站cc| 国产成人综合网站| 欧美国产一区视频在线观看| 懂色av一区二区夜夜嗨| 欧美国产禁国产网站cc| 成人免费视频国产在线观看| 中文成人综合网| 99久久精品免费看| 亚洲狼人国产精品| 欧美日韩国产123区| 日韩vs国产vs欧美| 精品国产污污免费网站入口| 国产美女在线观看一区| 日本一区二区三区久久久久久久久不| 国产成人午夜高潮毛片| ●精品国产综合乱码久久久久| 色综合久久中文综合久久牛| 亚洲成人福利片| 日韩欧美一二三四区| 国产精品白丝jk白祙喷水网站| 国产精品日产欧美久久久久| 91美女在线视频| 奇米色777欧美一区二区| 精品国精品国产| av中文字幕不卡| 亚洲不卡av一区二区三区| 日韩欧美视频在线| 欧美在线看片a免费观看| 日韩高清中文字幕一区| 久久综合九色欧美综合狠狠| 99久久久国产精品| 日韩成人精品在线| 日本一区二区高清| 欧美性色黄大片|