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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? elevator.cs

?? 設(shè)計一個電梯模擬系統(tǒng)。主要用于實現(xiàn)
?? CS
?? 第 1 頁 / 共 4 頁
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Timers;

namespace Elevator
{
	//Directs of the elevators, UP means moving upward
	//DOWN moving downwards and HALT a free moving state
	enum Direct{UP = -1, HALT, DOWN};
	public class Elevator : System.Windows.Forms.Form
	{
		//Automatically generated code
		private System.Windows.Forms.GroupBox elevator1;
		private System.Windows.Forms.Button elevatorButton11;
		private System.Windows.Forms.Button elevatorButton12;
		private System.Windows.Forms.Button elevatorButton13;
		private System.Windows.Forms.Button elevatorButton14;
		private System.Windows.Forms.TextBox elevatorTextBox1;

		private System.Windows.Forms.GroupBox elevator2;
		private System.Windows.Forms.Button elevatorButton21;
		private System.Windows.Forms.Button elevatorButton22;
		private System.Windows.Forms.Button elevatorButton23;
		private System.Windows.Forms.Button elevatorButton24;
		private System.Windows.Forms.TextBox elevatorTextBox2;

		private System.Windows.Forms.Button outButton12;
		private System.Windows.Forms.Button outButton14;
		private System.Windows.Forms.Button inButton13;
		private System.Windows.Forms.Button inButton11;
		private System.Windows.Forms.Button upButton1;
		private System.Windows.Forms.Button floor1;

		private System.Windows.Forms.Button outButton34;
		private System.Windows.Forms.Button inButton33;
		private System.Windows.Forms.Button outButton32;
		private System.Windows.Forms.Button inButton31;
		private System.Windows.Forms.Button downButton3;
		private System.Windows.Forms.Button upButton3;
		private System.Windows.Forms.Button floor3;

		private System.Windows.Forms.Button outButton42;
		private System.Windows.Forms.Button outButton44;
		private System.Windows.Forms.Button inButton43;
		private System.Windows.Forms.Button inButton41;
		private System.Windows.Forms.Button downButton4;
		private System.Windows.Forms.Button floor4;

		private System.Windows.Forms.Button outButton22;
		private System.Windows.Forms.Button outButton24;
		private System.Windows.Forms.Button inButton23;
		private System.Windows.Forms.Button inButton21;
		private System.Windows.Forms.Button upButton2;
		private System.Windows.Forms.Button floor2;
		private System.Windows.Forms.Button downButton2;

		private System.Windows.Forms.Timer timerControl;
		private System.ComponentModel.IContainer components;
		
		//User-defined codes	
		private int passengerE1;										//People in elevator1
		private int passengerE2;										//People in elevator2
		private int suspendTime1 = 0;									//Delay elevator1's ascending or descending
		private int suspendTime2 = 0;									//Delay elevator1's ascending or descending
		private int directE1 = (int)Direct.HALT;						//Elevator1's moving direction
		private int directE2 = (int)Direct.HALT;						//Elevator2's moving direction
		private int stateE1 = 1;										//Elevator1's now in which floor
		private int stateE2 = 1;										//Elevator2's now in which floor
		private int [] destination1 = new int [] {0,0,0,0,0};		//Elevator1's destination
		private int [] destination2 = new int [] {0,0,0,0,0};		//Elevator2's destination
		//Unhandled requests of upButtons or downButtons, and false means the corresponding event
		//Has been handled, otherwise unhandled.
		private bool [,] unhandled = {{false,false,false,false,false},
										{false,false,false,false,false}};

		public Elevator()
		{
			InitializeComponent();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.elevator1 = new System.Windows.Forms.GroupBox();
			this.elevatorButton14 = new System.Windows.Forms.Button();
			this.elevatorButton13 = new System.Windows.Forms.Button();
			this.elevatorButton12 = new System.Windows.Forms.Button();
			this.elevatorButton11 = new System.Windows.Forms.Button();
			this.elevatorTextBox1 = new System.Windows.Forms.TextBox();
			this.elevator2 = new System.Windows.Forms.GroupBox();
			this.elevatorButton21 = new System.Windows.Forms.Button();
			this.elevatorButton22 = new System.Windows.Forms.Button();
			this.elevatorButton23 = new System.Windows.Forms.Button();
			this.elevatorButton24 = new System.Windows.Forms.Button();
			this.elevatorTextBox2 = new System.Windows.Forms.TextBox();
			this.outButton12 = new System.Windows.Forms.Button();
			this.outButton14 = new System.Windows.Forms.Button();
			this.inButton13 = new System.Windows.Forms.Button();
			this.inButton11 = new System.Windows.Forms.Button();
			this.upButton1 = new System.Windows.Forms.Button();
			this.floor1 = new System.Windows.Forms.Button();
			this.outButton34 = new System.Windows.Forms.Button();
			this.inButton33 = new System.Windows.Forms.Button();
			this.inButton31 = new System.Windows.Forms.Button();
			this.downButton3 = new System.Windows.Forms.Button();
			this.upButton3 = new System.Windows.Forms.Button();
			this.floor3 = new System.Windows.Forms.Button();
			this.outButton42 = new System.Windows.Forms.Button();
			this.outButton44 = new System.Windows.Forms.Button();
			this.inButton43 = new System.Windows.Forms.Button();
			this.inButton41 = new System.Windows.Forms.Button();
			this.downButton4 = new System.Windows.Forms.Button();
			this.floor4 = new System.Windows.Forms.Button();
			this.outButton22 = new System.Windows.Forms.Button();
			this.outButton24 = new System.Windows.Forms.Button();
			this.inButton23 = new System.Windows.Forms.Button();
			this.inButton21 = new System.Windows.Forms.Button();
			this.upButton2 = new System.Windows.Forms.Button();
			this.floor2 = new System.Windows.Forms.Button();
			this.downButton2 = new System.Windows.Forms.Button();
			this.outButton32 = new System.Windows.Forms.Button();
			this.timerControl = new System.Windows.Forms.Timer(this.components);
			this.elevator1.SuspendLayout();
			this.elevator2.SuspendLayout();
			this.SuspendLayout();
			// 
			// elevator1
			// 
			this.elevator1.BackColor = System.Drawing.Color.LightSeaGreen;
			this.elevator1.Controls.Add(this.elevatorButton14);
			this.elevator1.Controls.Add(this.elevatorButton13);
			this.elevator1.Controls.Add(this.elevatorButton12);
			this.elevator1.Controls.Add(this.elevatorButton11);
			this.elevator1.Controls.Add(this.elevatorTextBox1);
			this.elevator1.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.elevator1.Location = new System.Drawing.Point(16, 400);
			this.elevator1.Name = "elevator1";
			this.elevator1.Size = new System.Drawing.Size(80, 112);
			this.elevator1.TabIndex = 0;
			this.elevator1.TabStop = false;
			this.elevator1.Text = "Elevator1";
			// 
			// elevatorButton14
			// 
			this.elevatorButton14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.elevatorButton14.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton14.Enabled = false;
			this.elevatorButton14.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton14.Location = new System.Drawing.Point(56, 19);
			this.elevatorButton14.Name = "elevatorButton14";
			this.elevatorButton14.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton14.TabIndex = 3;
			this.elevatorButton14.Text = "4";
			this.elevatorButton14.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorButton13
			// 
			this.elevatorButton13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.elevatorButton13.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton13.Enabled = false;
			this.elevatorButton13.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton13.Location = new System.Drawing.Point(56, 42);
			this.elevatorButton13.Name = "elevatorButton13";
			this.elevatorButton13.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton13.TabIndex = 2;
			this.elevatorButton13.Text = "3";
			this.elevatorButton13.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorButton12
			// 
			this.elevatorButton12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.elevatorButton12.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton12.Enabled = false;
			this.elevatorButton12.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton12.Location = new System.Drawing.Point(56, 65);
			this.elevatorButton12.Name = "elevatorButton12";
			this.elevatorButton12.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton12.TabIndex = 1;
			this.elevatorButton12.Text = "2";
			this.elevatorButton12.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorButton11
			// 
			this.elevatorButton11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.elevatorButton11.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton11.Enabled = false;
			this.elevatorButton11.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton11.Location = new System.Drawing.Point(56, 88);
			this.elevatorButton11.Name = "elevatorButton11";
			this.elevatorButton11.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton11.TabIndex = 0;
			this.elevatorButton11.Text = "1";
			this.elevatorButton11.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorTextBox1
			// 
			this.elevatorTextBox1.Location = new System.Drawing.Point(8, 56);
			this.elevatorTextBox1.Name = "elevatorTextBox1";
			this.elevatorTextBox1.ReadOnly = true;
			this.elevatorTextBox1.Size = new System.Drawing.Size(24, 21);
			this.elevatorTextBox1.TabIndex = 1;
			this.elevatorTextBox1.Text = "0";
			// 
			// elevator2
			// 
			this.elevator2.BackColor = System.Drawing.Color.LightSeaGreen;
			this.elevator2.Controls.Add(this.elevatorButton21);
			this.elevator2.Controls.Add(this.elevatorButton22);
			this.elevator2.Controls.Add(this.elevatorButton23);
			this.elevator2.Controls.Add(this.elevatorButton24);
			this.elevator2.Controls.Add(this.elevatorTextBox2);
			this.elevator2.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.elevator2.Location = new System.Drawing.Point(256, 400);
			this.elevator2.Name = "elevator2";
			this.elevator2.Size = new System.Drawing.Size(80, 112);
			this.elevator2.TabIndex = 1;
			this.elevator2.TabStop = false;
			this.elevator2.Text = "Elevator2";
			// 
			// elevatorButton21
			// 
			this.elevatorButton21.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.elevatorButton21.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton21.Enabled = false;
			this.elevatorButton21.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton21.Location = new System.Drawing.Point(0, 88);
			this.elevatorButton21.Name = "elevatorButton21";
			this.elevatorButton21.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton21.TabIndex = 0;
			this.elevatorButton21.Text = "1";
			this.elevatorButton21.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorButton22
			// 
			this.elevatorButton22.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.elevatorButton22.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton22.Enabled = false;
			this.elevatorButton22.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton22.Location = new System.Drawing.Point(0, 65);
			this.elevatorButton22.Name = "elevatorButton22";
			this.elevatorButton22.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton22.TabIndex = 1;
			this.elevatorButton22.Text = "2";
			this.elevatorButton22.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorButton23
			// 
			this.elevatorButton23.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.elevatorButton23.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton23.Enabled = false;
			this.elevatorButton23.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton23.Location = new System.Drawing.Point(0, 42);
			this.elevatorButton23.Name = "elevatorButton23";
			this.elevatorButton23.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton23.TabIndex = 2;
			this.elevatorButton23.Text = "3";
			this.elevatorButton23.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorButton24
			// 
			this.elevatorButton24.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.elevatorButton24.BackColor = System.Drawing.SystemColors.Control;
			this.elevatorButton24.Enabled = false;
			this.elevatorButton24.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.elevatorButton24.Location = new System.Drawing.Point(0, 19);
			this.elevatorButton24.Name = "elevatorButton24";
			this.elevatorButton24.Size = new System.Drawing.Size(24, 23);
			this.elevatorButton24.TabIndex = 3;
			this.elevatorButton24.Text = "4";
			this.elevatorButton24.Click += new System.EventHandler(this.elevatorButton_Click);
			// 
			// elevatorTextBox2
			// 
			this.elevatorTextBox2.Location = new System.Drawing.Point(40, 48);
			this.elevatorTextBox2.Name = "elevatorTextBox2";
			this.elevatorTextBox2.ReadOnly = true;
			this.elevatorTextBox2.Size = new System.Drawing.Size(24, 21);
			this.elevatorTextBox2.TabIndex = 1;
			this.elevatorTextBox2.Text = "0";
			// 
			// outButton12
			// 
			this.outButton12.BackColor = System.Drawing.SystemColors.Control;
			this.outButton12.Enabled = false;
			this.outButton12.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.outButton12.Location = new System.Drawing.Point(120, 472);
			this.outButton12.Name = "outButton12";
			this.outButton12.Size = new System.Drawing.Size(24, 24);
			this.outButton12.TabIndex = 29;
			this.outButton12.Text = ">";
			this.outButton12.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// outButton14
			// 
			this.outButton14.BackColor = System.Drawing.SystemColors.Control;
			this.outButton14.Enabled = false;
			this.outButton14.FlatStyle = System.Windows.Forms.FlatStyle.Flat;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本久道中文字幕精品亚洲嫩| 7777精品伊人久久久大香线蕉最新版| 亚洲一二三区在线观看| 亚洲精品在线免费观看视频| 欧洲人成人精品| 成人精品免费看| 国产美女精品一区二区三区| 麻豆精品国产91久久久久久| 亚洲一二三四久久| 一二三区精品视频| 国产精品久久久久久久久动漫| 久久久久久亚洲综合| 日韩欧美一级二级三级| 欧美一级精品在线| 99精品视频在线播放观看| 成人性生交大片免费看视频在线| 天堂蜜桃一区二区三区| 亚洲第一狼人社区| 日韩va欧美va亚洲va久久| 一区二区三区国产| 一级中文字幕一区二区| 亚洲欧美一区二区不卡| 中文字幕一区在线观看| √…a在线天堂一区| 国产色一区二区| 国产亚洲综合av| 欧美日韩极品在线观看一区| 成人久久久精品乱码一区二区三区| 国产乱子伦视频一区二区三区 | 久久久精品蜜桃| 久久网这里都是精品| 久久久久久久性| 国产日韩精品一区| 亚洲欧美色一区| 国产精品网站在线观看| 亚洲精品日韩一| 亚洲精品视频免费观看| 日本欧美久久久久免费播放网| 久久91精品国产91久久小草| 国产成人av一区| 日本精品一级二级| 欧美久久一二三四区| 精品国内二区三区| 国产精品国产三级国产普通话99| 一区二区三区在线视频免费观看| 天堂精品中文字幕在线| 国产精品亚洲综合一区在线观看| a亚洲天堂av| 一本色道**综合亚洲精品蜜桃冫| 欧美日韩免费高清一区色橹橹 | 欧美一卡2卡3卡4卡| 国产欧美精品日韩区二区麻豆天美| 亚洲欧洲精品天堂一级| 亚洲午夜一区二区| 国产一区二区三区在线看麻豆| 成人黄色在线网站| 91精品国产一区二区三区| 久久久久国产精品麻豆| 亚洲成人免费观看| 激情伊人五月天久久综合| 91农村精品一区二区在线| 欧美一区二区三级| 国产精品久久久久久久久免费丝袜 | 欧美日韩一卡二卡| 中文字幕中文字幕一区| 久久国产精品一区二区| 色综合天天综合狠狠| 欧美日韩另类国产亚洲欧美一级| 久久久精品综合| 奇米色777欧美一区二区| 色狠狠色噜噜噜综合网| 国产欧美日韩综合精品一区二区| 亚洲电影第三页| 99久久久精品| 日本一区二区三区免费乱视频| 免费在线成人网| 99亚偷拍自图区亚洲| 色素色在线综合| 国产女主播一区| 亚洲激情图片qvod| 高清日韩电视剧大全免费| 精品少妇一区二区三区在线视频 | 悠悠色在线精品| 处破女av一区二区| 国产亚洲一区二区三区四区| 日韩中文字幕不卡| 欧美系列在线观看| 国产欧美日产一区| 久久国产人妖系列| 欧美精品 日韩| 一区二区三区不卡视频| 国产精品资源在线看| 91首页免费视频| 国产免费久久精品| 午夜影院在线观看欧美| 日本乱人伦aⅴ精品| 天堂一区二区在线免费观看| 欧美精品123区| 美女mm1313爽爽久久久蜜臀| 日韩欧美亚洲一区二区| 久久机这里只有精品| 精品日韩99亚洲| 国产精一品亚洲二区在线视频| 欧美成人欧美edvon| 视频一区二区国产| 97se亚洲国产综合自在线| 26uuu国产一区二区三区| 美女网站色91| 国产三级一区二区三区| 不卡的av在线| 亚洲成人手机在线| 欧洲中文字幕精品| 蜜桃一区二区三区在线观看| xnxx国产精品| 色综合久久久网| 天天亚洲美女在线视频| 久久免费精品国产久精品久久久久| 国产麻豆精品视频| 亚洲三级久久久| 欧美精品在线一区二区| 国模娜娜一区二区三区| 国产精品电影院| 精品视频全国免费看| 久久精品国产成人一区二区三区 | 日韩一区二区三| 国产69精品久久99不卡| 一区二区高清免费观看影视大全| 日韩精品专区在线影院观看| 成人激情综合网站| 日本三级韩国三级欧美三级| 国产亚洲一区二区三区四区| 欧美色图天堂网| 国产伦精品一区二区三区免费 | 国产在线精品一区二区三区不卡 | 三级在线观看一区二区| 91精品免费在线观看| 免费看欧美女人艹b| 国产精品久久影院| 欧美一区二区三区性视频| 丁香六月综合激情| 日韩vs国产vs欧美| 亚洲男人的天堂在线aⅴ视频| 日韩精品一区二区三区老鸭窝| 99久久精品免费看国产| 精品综合免费视频观看| 欧美激情一区在线| 欧美视频在线观看一区二区| 国产剧情一区二区三区| 亚洲欧美福利一区二区| 日韩亚洲欧美在线| 色综合夜色一区| 久久99精品久久久| 亚洲成av人综合在线观看| 亚洲柠檬福利资源导航| 久久久99精品久久| 91麻豆产精品久久久久久 | 国产资源在线一区| 日韩vs国产vs欧美| 午夜精品久久久久久久久久久| 久久久一区二区| 欧美一级艳片视频免费观看| 在线精品视频免费播放| 成人av网站在线| 国产在线精品一区在线观看麻豆| 亚洲欧美日韩久久| 日本一区二区三区在线不卡| 久久蜜桃av一区精品变态类天堂| 91同城在线观看| 成人动漫一区二区在线| 国产在线乱码一区二区三区| 久久99国内精品| 亚洲成人av一区二区| 国产欧美一区二区三区鸳鸯浴| 久久嫩草精品久久久精品一| 久久综合色婷婷| 久久久国产精品麻豆| 亚洲国产精品ⅴa在线观看| 日本一区二区三区四区| 中文字幕一区二区三区在线不卡| 欧美国产视频在线| 国产精品国产三级国产普通话三级| 国产精品另类一区| 2023国产精华国产精品| 国产视频一区二区在线观看| 中文成人av在线| 一区二区三区不卡视频| 亚洲成人777| 久久99久久久久久久久久久| 精品一区二区国语对白| 国产一区二区h| 99久久99久久精品国产片果冻| 色婷婷狠狠综合| 666欧美在线视频| 国产欧美一区二区在线观看| 日韩毛片高清在线播放| 亚洲成av人片www| 精品一区二区三区欧美| 成人激情文学综合网| 欧美在线观看一二区| 日韩欧美中文一区二区|