Exemplo n.º 1
0
 void AddWordCollection(WordCollection newCollection)
 {
     if (!mWordStore.mWordCollections.ContainsKey(newCollection.mName))
     {
         mWordStore.mWordCollections.Add(newCollection.mName, newCollection);
         return;
     }
     Log.Warning("Collection {0} already exists.", newCollection.mName);
 }
Exemplo n.º 2
0
 bool UpdateWordCollection(WordCollection collection)
 {
     if (mWordStore.mWordCollections.ContainsKey(collection.mName))
     {
         mWordStore.mWordCollections[collection.mName] = collection;
         return(true);
     }
     Log.Warning("Unknown Word collection: {A}", collection.mName);
     return(false);
 }