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;
// }
}