Example #1
0
        private bool ValidateMappings()
        {
            foreach (ImportProperty property in exchangeProps)
            {
                property.MappedColumn = (int)property.Combo.GetSelectedValue();
                if (!property.IsRequired || property.MappedColumn >= 0)
                {
                    continue;
                }

                MessageError.ShowDialog(
                    string.Format(Translator.GetString("The property \"{0}\" is required and must have a valid mapping before the import process can begin!"), property.Name),
                    ErrorSeverity.Error);

                return(false);
            }

            propertyMap = ExchangeHelper.GeneratePropertyMap(exchangeProps);
            return(true);
        }