/// <summary> /// Judge whether invalid message of valley range is correct /// </summary> /// <param name="output">TOUBasicTariffExpectedData</param> /// <returns>whether the invalid message is ture</returns> public Boolean IsValleyRangeInvalidMsgCorrect(TOUBasicTariffExpectedData output, int position) { int arrayPosition = position - 1; ComboBox OneBasicPropertyValleyStartTimeComboBox = GetOneBasicPropertyValleyStartTimeComboBox(position); return(OneBasicPropertyValleyStartTimeComboBox.GetInvalidTips().Contains(output.ValleyRange[arrayPosition].StartTime)); }
/// <summary> /// Judge whether invalid message of Valley Price field is correct /// </summary> /// <param name="output">TOUBasicTariffExpectedData</param> /// <returns>whether the invalid message is ture</returns> public Boolean IsValleyPriceInvalidMsgCorrect(TOUBasicTariffExpectedData output) { if (output.ValleyPrice != null) { return(BasicPropertyValleyPriceValueTextField.GetInvalidTipsForNumberField().Contains(output.ValleyPrice)); } else { return(true); } }
/// <summary> /// Judge whether invalid message of name field is correct /// </summary> /// <param name="output">TOUBasicTariffExpectedData</param> /// <returns>whether the invalid message is ture</returns> public Boolean IsNameInvalidMsgCorrect(TOUBasicTariffExpectedData output) { return(BasicPropertyNameTextField.GetInvalidTips().Contains(output.CommonName)); }