electricpumpdriver.cs

来自「北大青鸟内部资料」· CS 代码 · 共 35 行

CS
35
字号
using System;

namespace PowerStation
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	public class ElectricPumpDriver
	{
		public ElectricPumpDriver()
		{
			//
			// TODO: Add constructor logic here
			//
		}
		
		//Event handler for the event CoreOverheating
        //Controls the Electric pump
		public void StartElectricPumpDriving(object sender, CoreOverheatingArgs args)
		{
			// Code to send signal to make all pneumatic pumps ON 
			if(args.CoreTemperature >= 34.00 && args.CoreTemperature<=50.00)
			{
				Console.Write("电动泵最低启动速度为"+ "\n");
			}
			else if(args.CoreTemperature >= 51.00)
			{
				Console.Write("电动泵最高启动速度为"+ "\n");
			}

		}
	}

}

⌨️ 快捷键说明

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