ATML1671Reader.forms.ATMLReaderOutputWindow.btnValidate_Click C# (CSharp) Method

btnValidate_Click() private method

private btnValidate_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void btnValidate_Click(object sender, EventArgs e)
        {
            StringBuilder error = new StringBuilder(1024 * 1024 * 6);
            if( !SchemaManager.ValidateXml(atmlPreviewPanel.Text, ATMLCommon.TestConfigurationNameSpace, error) )
            {
                ATMLErrorForm.ShowValidationMessage(
                    string.Format("The Test Configuration has failed validation against the ATML schema."),
                    error.ToString(),
                    "Note: This error will not prevent you from continuing.");
            }
            else
            {
                MessageBox.Show(@"This Test Configuration has generated a valid ATML document.");
            }
        }