private void PhysicalInterfaceListControl_Validating( object sender, CancelEventArgs e )
{
tabConnectors.ToolTipText = "";
tabPorts.ToolTipText = "";
lvConnectors.HasErrors = false;
lvPorts.HasErrors = false;
errorProvider.SetError( this, "" );
if (_physicalInterface.Items == null || _physicalInterface.Items.Count == 0)
{
lvConnectors.HasErrors = true;
lvPorts.HasErrors = true;
tabConnectors.ToolTipText = Resources.errmsg_at_least_one_interface_item;
tabPorts.ToolTipText = Resources.errmsg_at_least_one_interface_item;
e.Cancel = true;
errorProvider.SetError( this, Resources.errmsg_at_least_one_interface_item );
}
}