public bool IsElementIdentifierUnique(TLCGenObjectTypeEnum objectType, string identifier, bool vissim = false) { if (!vissim) { return(TLCGenIntegrityChecker.IsElementNaamUnique(Controller, identifier, objectType)); } return(TLCGenIntegrityChecker.IsElementVissimNaamUnique(Controller, identifier)); }
private void OnIsElementIdentifierUniqueRequestReceived(IsElementIdentifierUniqueRequest request) { if (request.Handled == false) { switch (request.Type) { case ElementIdentifierType.Naam: request.IsUnique = TLCGenIntegrityChecker.IsElementNaamUnique(_Controller, request.Identifier); request.Handled = true; break; case ElementIdentifierType.VissimNaam: request.IsUnique = TLCGenIntegrityChecker.IsElementVissimNaamUnique(_Controller, request.Identifier); request.Handled = true; break; } } }