ATMLCommonLibrary.forms.InstrumentForm.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 )
        {
            ValidateToSchema();
            /*
            var error = new StringBuilder( 1024*1024*6 );
            InstrumentDescription instrument = InstrumentDescription;
            if (instrument != null)
            {
                if (!SchemaManager.ValidateXml( instrument.Serialize(), ATMLCommon.InstrumentNameSpace, error ))
                {
                    ATMLErrorForm.ShowValidationMessage(
                        string.Format( "The \"{0}\" Instrument has failed validation against the {1} ATML schema.",
                                       instrument.name, ATMLCommon.InstrumentNameSpace ),
                        error.ToString(),
                        "Note: This error will not prevent you from continuing." );
                }
                else
                {
                    MessageBox.Show( @"This Instrument generated valid ATML" );
                }
            }
             */
        }