public APad ProcessClick(int logicalX, int logicalY) { if (LastCommand.IsOneOf(CommandType.Continue, CommandType.WaitClick)) { return(From(Program, Exp.Call(Program, Memory.ToExp(), CoreImplementations.Pair(logicalX, logicalY)))); } throw new InvalidOperationException(LastCommand.ToString()); }