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

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

?? elevator.cs

?? 設計一個電梯模擬系統。主要用于實現
?? 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;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲视频一区在线观看| 亚洲欧洲成人av每日更新| 欧美在线免费播放| 91丨九色丨黑人外教| av成人免费在线| youjizz国产精品| 91麻豆.com| 欧美日韩国产a| 欧美电影免费观看高清完整版在线| 7777女厕盗摄久久久| 欧美一区二区三区电影| 欧美精品一区二区三区蜜桃| 久久综合久久综合久久综合| 国产免费久久精品| 最新国产精品久久精品| 亚洲一区二区三区中文字幕| 亚洲成a人片在线观看中文| 日韩成人一级大片| 国产精品一区免费视频| 91老师片黄在线观看| 欧美日韩国产a| 久久精品视频免费| 亚洲免费观看高清| 日韩国产精品大片| 国产成人精品三级| 欧美少妇bbb| 久久精品一区八戒影视| 一级精品视频在线观看宜春院| 午夜在线电影亚洲一区| 国产精品一区在线| 欧美最猛性xxxxx直播| 精品日本一线二线三线不卡| 国产精品久久久久aaaa| 性做久久久久久| 国产成人亚洲综合a∨婷婷| 欧美曰成人黄网| 久久人人97超碰com| 亚洲在线视频一区| 国产精品一区一区三区| 欧美精品v国产精品v日韩精品| 久久久电影一区二区三区| 亚洲综合免费观看高清在线观看| 精品亚洲成a人| 欧美在线你懂的| 中文字幕欧美国产| 麻豆精品一区二区综合av| 色天天综合色天天久久| 久久久精品免费网站| 日韩高清不卡一区二区| 9色porny自拍视频一区二区| 欧美va天堂va视频va在线| 亚洲一区二区偷拍精品| av亚洲精华国产精华精华 | www..com久久爱| 日韩视频123| 五月婷婷另类国产| 色婷婷综合久久久中文一区二区| 国产欧美日韩精品一区| 九九热在线视频观看这里只有精品| 欧美中文字幕一区| 亚洲精品乱码久久久久久日本蜜臀| 国产精品综合在线视频| 亚洲精品一区二区三区香蕉| 日本中文一区二区三区| 欧美精品tushy高清| 亚洲va韩国va欧美va| 91久久人澡人人添人人爽欧美 | 99视频超级精品| www成人在线观看| 狂野欧美性猛交blacked| 在线播放日韩导航| 丝袜美腿亚洲色图| 91精品国产综合久久小美女| 亚洲高清免费观看| 欧美老人xxxx18| 亚洲6080在线| 91精品国产麻豆| 久久国产精品无码网站| 日韩精品一区二区三区视频| 裸体健美xxxx欧美裸体表演| 欧美xxxxxxxxx| 国产乱码精品1区2区3区| 亚洲国产精品成人综合 | 欧美丝袜第三区| 亚洲bt欧美bt精品| 欧美一区二区免费| 韩国理伦片一区二区三区在线播放| 精品国产一二三| 国产成人午夜精品影院观看视频| 中文av一区二区| 色综合天天综合色综合av| 亚洲高清视频的网址| 欧美一级在线视频| 国产剧情在线观看一区二区| 日韩毛片精品高清免费| 91.xcao| 国精品**一区二区三区在线蜜桃| 国产欧美中文在线| 欧美最新大片在线看| 久久精品国产秦先生| 国产精品久久久久影院| 欧美综合久久久| 国产精品综合网| 亚洲成人av免费| 久久精品一二三| 欧美精品色一区二区三区| 国产成人免费视频精品含羞草妖精| 亚洲天堂av一区| 精品毛片乱码1区2区3区| 91免费国产视频网站| 日韩国产在线观看| 中文字幕一区二区不卡| 欧美成人激情免费网| 成人的网站免费观看| 日韩和欧美的一区| 亚洲欧洲精品天堂一级| 日韩视频免费观看高清完整版| 成人免费视频一区二区| 免费黄网站欧美| 亚洲激情六月丁香| 国产欧美日韩三级| 日韩欧美中文字幕制服| 91丨国产丨九色丨pron| 国产在线精品一区二区| 日韩—二三区免费观看av| 亚洲欧洲综合另类| 国产亚洲精品免费| 精品欧美一区二区久久| 欧美精品在线视频| 91福利在线导航| 91一区二区在线| 国产激情91久久精品导航| 美女免费视频一区二区| 亚洲成人精品一区| 一区二区欧美在线观看| 综合欧美亚洲日本| 欧美国产欧美综合| 久久精品视频一区| www久久精品| 日韩精品一区二区三区四区视频| 精品视频999| 在线观看日韩高清av| 色噜噜狠狠色综合欧洲selulu| 国产成人在线免费观看| 国产精品一二三四五| 国产在线观看一区二区| 国产九色精品成人porny| 国产一区二区导航在线播放| 久久国产精品99久久久久久老狼| 日韩精品每日更新| 水蜜桃久久夜色精品一区的特点| 亚洲一级片在线观看| 性久久久久久久久| 日日夜夜一区二区| 日韩黄色一级片| 成人黄页在线观看| 国产成人av一区| 高清不卡一二三区| 国产69精品久久99不卡| 欧美激情一区二区三区不卡 | 三级欧美在线一区| 成人午夜激情影院| 日韩午夜电影av| 亚洲女同女同女同女同女同69| 久久超碰97中文字幕| 欧美在线一区二区| 国产精品乱人伦中文| 久久av中文字幕片| 欧美三级韩国三级日本一级| 国产精品激情偷乱一区二区∴| 激情另类小说区图片区视频区| 99久久久精品| 精品乱码亚洲一区二区不卡| 亚洲国产aⅴ天堂久久| a亚洲天堂av| 国产视频一区不卡| 久久av老司机精品网站导航| 欧美日韩精品一区二区三区蜜桃 | 精品成人一区二区三区四区| 亚洲一区二区三区爽爽爽爽爽| 成人伦理片在线| 2021中文字幕一区亚洲| 日韩va亚洲va欧美va久久| 精品视频999| 亚洲乱码中文字幕综合| 成人黄色av电影| 中文字幕 久热精品 视频在线 | 久久理论电影网| 精品一二三四在线| 欧美r级电影在线观看| 丝袜诱惑制服诱惑色一区在线观看 | 国产精品日产欧美久久久久| 美女网站视频久久| 欧美一区二区在线免费播放| 婷婷中文字幕一区三区| 欧美揉bbbbb揉bbbbb| 亚洲成人免费视频| 91.xcao| 美国毛片一区二区三区| 日韩欧美在线不卡|