C# (CSharp) OneIncludeManyCommands Fan.Off - 2 examples found. These are the top rated real world C# (CSharp) examples of OneIncludeManyCommands.Fan.Off extracted from open source projects. You can rate examples to help us improve the quality of examples.
public void Undo()
{
switch (prevSpeed)
{
case Fan.HIGH:
fan.High();
break;
case Fan.MEDIUM:
fan.Medium();
break;
case Fan.LOW:
fan.Low();
break;
case Fan.OFF:
fan.Off();
break;
}
}