?? 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 + -