/// <summary> /// Judge whether invalid message of pulse peak range is correct /// </summary> /// <param name="output">TOUPulsePeakTariffExpectedData</param> /// <returns>whether the invalid message is ture</returns> public Boolean IsPulsePeakRangeInvalidMsgCorrect(TOUPulsePeakTariffExpectedData output, int position) { int arrayPosition = position - 1; ComboBox OnePulsePeakPropertyStartTimeComboBox = GetOnePulsePeakPropertyStartTimeComboBox(position); return(OnePulsePeakPropertyStartTimeComboBox.GetInvalidTips().Contains(output.PulsePeakRange[arrayPosition].StartTime)); }
/// <summary> /// Judge whether invalid message of Pulse Peak Price field is correct /// </summary> /// <param name="output">TOUPulse PeakTariffExpectedData</param> /// <returns>whether the invalid message is ture</returns> public Boolean IsPulsePeakPriceInvalidMsgCorrect(TOUPulsePeakTariffExpectedData output) { if (output.Price != null) { return(PulsePeakPropertyPriceValueTextField.GetInvalidTipsForNumberField().Contains(output.Price)); } else { return(true); } }