public Boolean IsNameInvalidMsgCorrect(WorkdayCalendarExpectedData output) { if (output.CommonName != null) { return(NameTextField.GetInvalidTips().Equals(output.CommonName)); } else { return(true); } }
public Boolean IsRangeInvalidMsgCorrect(WorkdayCalendarExpectedData output, int position) { int arrayPosition = position - 1; ComboBox OneEndMonthComboBox = GetOneEndMonthComboBox(position); if (output.SpecialDate != null) { return(OneEndMonthComboBox.GetInvalidTips().Contains(output.SpecialDate[arrayPosition].EndMonth)); } else { return(true); } }