public RemoteCommand.Command GetCommand() { RemoteCommand.Command CurrentCommand = RemoteCommand.DoSomething; RemoteCommand.DoSomething = RemoteCommand.Command.Idle; if (CurrentCommand != null) { return(CurrentCommand); } else { RemoteCommand.DoSomething = RemoteCommand.Command.Idle; } CurrentCommand = RemoteCommand.DoSomething; return(CurrentCommand); }
public void SendCommand(RemoteCommand.Command Command) { RemoteCommand.DoSomething = Command; }