ATMLCommonLibrary.controls.instrument.InstrumentControl.InstrumentControl_Validating C# (CSharp) Метод

InstrumentControl_Validating() приватный Метод

private InstrumentControl_Validating ( object sender, CancelEventArgs e ) : void
sender object
e CancelEventArgs
Результат void
        private void InstrumentControl_Validating(object sender, CancelEventArgs e)
        {
            if (!String.IsNullOrEmpty(SchemaTypeName) && !String.IsNullOrEmpty(TargetNamespace))
            {
                XmlSchemaComplexType complexType;
                if (SchemaManager.GetComplexType(TargetNamespace, SchemaTypeName, out complexType))
                {
                }
            }

            errorProvider1.SetError(this, "");
            if (InstrumentDescription == null)
            {
                errorProvider1.SetError(this, "You cannot save an empty Instrument");
                e.Cancel = true;
            }
               //else if (InstrumentDescription.Interface == null)
               // {
               //     errorProvider1.SetError(this, Resources.errmsg_at_least_one_interface_item);
               //     e.Cancel = true;
               // }
        }