示例#1
0
        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);
        }
示例#2
0
        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);
        }