public bool IsElementIdentifierUnique(TLCGenObjectTypeEnum objectType, string identifier, bool vissim = false)
 {
     if (!vissim)
     {
         return(TLCGenIntegrityChecker.IsElementNaamUnique(Controller, identifier, objectType));
     }
     return(TLCGenIntegrityChecker.IsElementVissimNaamUnique(Controller, identifier));
 }
示例#2
0
        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;
                }
            }
        }