예제 #1
0
        void OnWizardUpdate()
        {
            isValid = true;
            var helpBuilder  = new StringBuilder();
            var errorBuilder = new StringBuilder();

            foreach (var msg in m_settings.CanExport())
            {
                isValid = false;
                errorBuilder.Append(msg);
            }

            helpString  = helpBuilder.ToString();
            errorString = errorBuilder.ToString();
        }
예제 #2
0
        void OnWizardUpdate()
        {
            isValid = true;
            var helpBuilder  = new StringBuilder();
            var errorBuilder = new StringBuilder();

            foreach (var validation in m_settings.CanExport())
            {
                if (!validation.CanExport)
                {
                    isValid = false;
                    errorBuilder.Append(validation.Message);
                }
                else
                {
                    helpBuilder.AppendLine(validation.Message);
                }
            }

            helpString  = helpBuilder.ToString();
            errorString = errorBuilder.ToString();
        }