internal bool InputIsValid() { if (Source < 1 || Source > 4) { return(ApiObject.FalseWithErrorMessage("SW41PlusV3.Source({0}): Must be between 1 and 4", Source)); } return(true); }
public bool IOsAreValid(int input, int output) { if (input < 1 || input > InputCount) { return(ApiObject.FalseWithErrorMessage("HxlPlus.{0}.Input({1}): Must be between 1 and {2}", this.GetType().Name, input, InputCount)); } if (output < 1 || output > OutputCount) { return(ApiObject.FalseWithErrorMessage("HxlPlus.{0}.Output({1}): Must be between 1 and {2}", this.GetType().Name, output, OutputCount)); } return(true); }