public bool Validate(StringBuilder errorMessageBuilder) { bool result = true; result &= OptionTasks.ValidateWebDavUrl(_serverSettingsControl.CalendarUrl, errorMessageBuilder, true); result &= _outlookFolderControl.Validate(errorMessageBuilder); result &= OptionTasks.ValidateEmailAddress(errorMessageBuilder, _serverSettingsControl.EmailAddress); return(result); }
public bool Validate(StringBuilder errorMessageBuilder) { bool result = true; if (_outlookFolderControl.OutlookFolderType != OlItemType.olTaskItem) { result &= OptionTasks.ValidateWebDavUrl(_serverSettingsControl.CalendarUrl, errorMessageBuilder, true); } result &= _outlookFolderControl.Validate(errorMessageBuilder); result &= OptionTasks.ValidateGoogleEmailAddress(errorMessageBuilder, _serverSettingsControl.EmailAddress); return(result); }