📄 electricpumpdriver.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -