/// <summary> /// /// </summary> /// <param name="command"></param> /// <returns></returns> internal LocalRunTimeCommandBase CreateLocalRunTimeCommand(IClientCommand command) { if (command is ExecOperCommand) { return(CreateExecuteOperaion((ExecOperCommand)command)); } else if (command is EventCommand) { return(CreateExecuteEvent((EventCommand)command)); } else if (command is MenuCommand) { return(CreateMenuExecuteOperationCommand((MenuCommand)command)); } else if (command is UnloadCommand) { return(CreateUnloadEvent(command)); } Logger.Instance.WriteExceptionToLog(string.Format("Unsupported command '{0}'", command.ToString())); throw new NotImplementedException(); }