예제 #1
0
        /// <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));
        }
예제 #2
0
 /// <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);
     }
 }
예제 #3
0
 /// <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));
 }