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

📄 elevator.cs

📁 设计一个电梯模拟系统。主要用于实现
💻 CS
📖 第 1 页 / 共 4 页
字号:
			this.outButton14.Location = new System.Drawing.Point(208, 472);
			this.outButton14.Name = "outButton14";
			this.outButton14.Size = new System.Drawing.Size(24, 24);
			this.outButton14.TabIndex = 28;
			this.outButton14.Text = "<";
			this.outButton14.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton13
			// 
			this.inButton13.BackColor = System.Drawing.SystemColors.Control;
			this.inButton13.Enabled = false;
			this.inButton13.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton13.Location = new System.Drawing.Point(208, 448);
			this.inButton13.Name = "inButton13";
			this.inButton13.Size = new System.Drawing.Size(24, 24);
			this.inButton13.TabIndex = 27;
			this.inButton13.Text = ">";
			this.inButton13.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton11
			// 
			this.inButton11.BackColor = System.Drawing.SystemColors.Control;
			this.inButton11.Enabled = false;
			this.inButton11.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton11.Location = new System.Drawing.Point(120, 448);
			this.inButton11.Name = "inButton11";
			this.inButton11.Size = new System.Drawing.Size(24, 24);
			this.inButton11.TabIndex = 26;
			this.inButton11.Text = "<";
			this.inButton11.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// upButton1
			// 
			this.upButton1.BackColor = System.Drawing.SystemColors.Control;
			this.upButton1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.upButton1.Location = new System.Drawing.Point(157, 448);
			this.upButton1.Name = "upButton1";
			this.upButton1.Size = new System.Drawing.Size(37, 23);
			this.upButton1.TabIndex = 24;
			this.upButton1.Text = "UP";
			this.upButton1.Click += new System.EventHandler(this.pressButton3_Click);
			// 
			// floor1
			// 
			this.floor1.BackColor = System.Drawing.Color.LightGreen;
			this.floor1.Enabled = false;
			this.floor1.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.floor1.Location = new System.Drawing.Point(144, 400);
			this.floor1.Name = "floor1";
			this.floor1.Size = new System.Drawing.Size(64, 23);
			this.floor1.TabIndex = 23;
			this.floor1.Text = "Floor1";
			// 
			// outButton34
			// 
			this.outButton34.BackColor = System.Drawing.SystemColors.Control;
			this.outButton34.Enabled = false;
			this.outButton34.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.outButton34.Location = new System.Drawing.Point(208, 208);
			this.outButton34.Name = "outButton34";
			this.outButton34.Size = new System.Drawing.Size(24, 24);
			this.outButton34.TabIndex = 42;
			this.outButton34.Text = "<";
			this.outButton34.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton33
			// 
			this.inButton33.BackColor = System.Drawing.SystemColors.Control;
			this.inButton33.Enabled = false;
			this.inButton33.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton33.Location = new System.Drawing.Point(208, 184);
			this.inButton33.Name = "inButton33";
			this.inButton33.Size = new System.Drawing.Size(24, 24);
			this.inButton33.TabIndex = 41;
			this.inButton33.Text = ">";
			this.inButton33.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton31
			// 
			this.inButton31.BackColor = System.Drawing.SystemColors.Control;
			this.inButton31.Enabled = false;
			this.inButton31.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton31.Location = new System.Drawing.Point(120, 184);
			this.inButton31.Name = "inButton31";
			this.inButton31.Size = new System.Drawing.Size(24, 24);
			this.inButton31.TabIndex = 40;
			this.inButton31.Text = "<";
			this.inButton31.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// downButton3
			// 
			this.downButton3.BackColor = System.Drawing.SystemColors.Control;
			this.downButton3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.downButton3.Location = new System.Drawing.Point(157, 207);
			this.downButton3.Name = "downButton3";
			this.downButton3.Size = new System.Drawing.Size(37, 23);
			this.downButton3.TabIndex = 39;
			this.downButton3.Text = "DOWN";
			this.downButton3.Click += new System.EventHandler(this.pressButton3_Click);
			// 
			// upButton3
			// 
			this.upButton3.BackColor = System.Drawing.SystemColors.Control;
			this.upButton3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.upButton3.Location = new System.Drawing.Point(157, 184);
			this.upButton3.Name = "upButton3";
			this.upButton3.Size = new System.Drawing.Size(37, 23);
			this.upButton3.TabIndex = 38;
			this.upButton3.Text = "UP";
			this.upButton3.Click += new System.EventHandler(this.pressButton3_Click);
			// 
			// floor3
			// 
			this.floor3.BackColor = System.Drawing.Color.LightGreen;
			this.floor3.Enabled = false;
			this.floor3.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.floor3.Location = new System.Drawing.Point(144, 144);
			this.floor3.Name = "floor3";
			this.floor3.Size = new System.Drawing.Size(64, 23);
			this.floor3.TabIndex = 37;
			this.floor3.Text = "Floor3";
			// 
			// outButton42
			// 
			this.outButton42.BackColor = System.Drawing.SystemColors.Control;
			this.outButton42.Enabled = false;
			this.outButton42.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.outButton42.Location = new System.Drawing.Point(120, 80);
			this.outButton42.Name = "outButton42";
			this.outButton42.Size = new System.Drawing.Size(24, 24);
			this.outButton42.TabIndex = 50;
			this.outButton42.Text = ">";
			this.outButton42.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// outButton44
			// 
			this.outButton44.BackColor = System.Drawing.SystemColors.Control;
			this.outButton44.Enabled = false;
			this.outButton44.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.outButton44.Location = new System.Drawing.Point(208, 80);
			this.outButton44.Name = "outButton44";
			this.outButton44.Size = new System.Drawing.Size(24, 24);
			this.outButton44.TabIndex = 49;
			this.outButton44.Text = "<";
			this.outButton44.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton43
			// 
			this.inButton43.BackColor = System.Drawing.SystemColors.Control;
			this.inButton43.Enabled = false;
			this.inButton43.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton43.Location = new System.Drawing.Point(208, 56);
			this.inButton43.Name = "inButton43";
			this.inButton43.Size = new System.Drawing.Size(24, 24);
			this.inButton43.TabIndex = 48;
			this.inButton43.Text = ">";
			this.inButton43.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton41
			// 
			this.inButton41.BackColor = System.Drawing.SystemColors.Control;
			this.inButton41.Enabled = false;
			this.inButton41.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton41.Location = new System.Drawing.Point(120, 56);
			this.inButton41.Name = "inButton41";
			this.inButton41.Size = new System.Drawing.Size(24, 24);
			this.inButton41.TabIndex = 47;
			this.inButton41.Text = "<";
			this.inButton41.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// downButton4
			// 
			this.downButton4.BackColor = System.Drawing.SystemColors.Control;
			this.downButton4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.downButton4.Location = new System.Drawing.Point(157, 80);
			this.downButton4.Name = "downButton4";
			this.downButton4.Size = new System.Drawing.Size(37, 23);
			this.downButton4.TabIndex = 46;
			this.downButton4.Text = "DOWN";
			this.downButton4.Click += new System.EventHandler(this.pressButton3_Click);
			// 
			// floor4
			// 
			this.floor4.BackColor = System.Drawing.Color.LightGreen;
			this.floor4.Enabled = false;
			this.floor4.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.floor4.Location = new System.Drawing.Point(144, 16);
			this.floor4.Name = "floor4";
			this.floor4.Size = new System.Drawing.Size(64, 23);
			this.floor4.TabIndex = 44;
			this.floor4.Text = "Floor4";
			// 
			// outButton22
			// 
			this.outButton22.BackColor = System.Drawing.SystemColors.Control;
			this.outButton22.Enabled = false;
			this.outButton22.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.outButton22.Location = new System.Drawing.Point(120, 344);
			this.outButton22.Name = "outButton22";
			this.outButton22.Size = new System.Drawing.Size(24, 24);
			this.outButton22.TabIndex = 57;
			this.outButton22.Text = ">";
			this.outButton22.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// outButton24
			// 
			this.outButton24.BackColor = System.Drawing.SystemColors.Control;
			this.outButton24.Enabled = false;
			this.outButton24.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.outButton24.Location = new System.Drawing.Point(208, 344);
			this.outButton24.Name = "outButton24";
			this.outButton24.Size = new System.Drawing.Size(24, 24);
			this.outButton24.TabIndex = 56;
			this.outButton24.Text = "<";
			this.outButton24.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton23
			// 
			this.inButton23.BackColor = System.Drawing.SystemColors.Control;
			this.inButton23.Enabled = false;
			this.inButton23.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton23.Location = new System.Drawing.Point(208, 320);
			this.inButton23.Name = "inButton23";
			this.inButton23.Size = new System.Drawing.Size(24, 24);
			this.inButton23.TabIndex = 55;
			this.inButton23.Text = ">";
			this.inButton23.Click += new System.EventHandler(this.pressButton2_Click);
			// 
			// inButton21
			// 
			this.inButton21.BackColor = System.Drawing.SystemColors.Control;
			this.inButton21.Enabled = false;
			this.inButton21.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.inButton21.Location = new System.Drawing.Point(120, 320);
			this.inButton21.Name = "inButton21";
			this.inButton21.Size = new System.Drawing.Size(24, 24);
			this.inButton21.TabIndex = 54;
			this.inButton21.Text = "<";
			this.inButton21.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// upButton2
			// 
			this.upButton2.BackColor = System.Drawing.SystemColors.Control;
			this.upButton2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.upButton2.Location = new System.Drawing.Point(157, 320);
			this.upButton2.Name = "upButton2";
			this.upButton2.Size = new System.Drawing.Size(37, 23);
			this.upButton2.TabIndex = 52;
			this.upButton2.Text = "UP";
			this.upButton2.Click += new System.EventHandler(this.pressButton3_Click);
			// 
			// floor2
			// 
			this.floor2.BackColor = System.Drawing.Color.LightGreen;
			this.floor2.Enabled = false;
			this.floor2.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.floor2.Location = new System.Drawing.Point(144, 272);
			this.floor2.Name = "floor2";
			this.floor2.Size = new System.Drawing.Size(64, 23);
			this.floor2.TabIndex = 51;
			this.floor2.Text = "Floor2";
			// 
			// downButton2
			// 
			this.downButton2.BackColor = System.Drawing.SystemColors.Control;
			this.downButton2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.downButton2.Location = new System.Drawing.Point(157, 343);
			this.downButton2.Name = "downButton2";
			this.downButton2.Size = new System.Drawing.Size(37, 23);
			this.downButton2.TabIndex = 58;
			this.downButton2.Text = "DOWN";
			this.downButton2.Click += new System.EventHandler(this.pressButton3_Click);
			// 
			// outButton32
			// 
			this.outButton32.BackColor = System.Drawing.SystemColors.Control;
			this.outButton32.Enabled = false;
			this.outButton32.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.outButton32.Location = new System.Drawing.Point(120, 208);
			this.outButton32.Name = "outButton32";
			this.outButton32.Size = new System.Drawing.Size(24, 24);
			this.outButton32.TabIndex = 59;
			this.outButton32.Text = ">";
			this.outButton32.Click += new System.EventHandler(this.pressButton1_Click);
			// 
			// timerControl
			// 
			this.timerControl.Enabled = true;
			this.timerControl.Interval = 30;
			this.timerControl.Tick += new System.EventHandler(this.timerControl_Tick);
			// 
			// Elevator
			// 
			this.AutoScale = false;
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.Color.Pink;
			this.ClientSize = new System.Drawing.Size(352, 509);
			this.Controls.Add(this.outButton32);
			this.Controls.Add(this.downButton2);
			this.Controls.Add(this.outButton22);
			this.Controls.Add(this.outButton24);
			this.Controls.Add(this.inButton23);
			this.Controls.Add(this.inButton21);
			this.Controls.Add(this.upButton2);
			this.Controls.Add(this.floor2);
			this.Controls.Add(this.outButton42);
			this.Controls.Add(this.outButton44);
			this.Controls.Add(this.inButton43);
			this.Controls.Add(this.inButton41);
			this.Controls.Add(this.downButton4);
			this.Controls.Add(this.floor4);
			this.Controls.Add(this.outButton34);
			this.Controls.Add(this.inButton33);
			this.Controls.Add(this.inButton31);
			this.Controls.Add(this.downButton3);
			this.Controls.Add(this.upButton3);
			this.Controls.Add(this.floor3);
			this.Controls.Add(this.outButton12);
			this.Controls.Add(this.outButton14);
			this.Controls.Add(this.inButton13);
			this.Controls.Add(this.inButton11);

⌨️ 快捷键说明

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