Exemplo n.º 1
0
 void OnCollectionRemoved(Collection collection)
 {
     CollectionRemoved?.Invoke(collection);
     if (tickergenerator.CollectionCount == 0)
     {
         context.GetModule <TickerModule>().RemoveSource(tickergenerator);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Removes a collection from the database.
        /// </summary>
        public void RemoveCollection(CollectionModel collection)
        {
            collection.Database.Database.DropCollection(collection.Name);
            collection.Database.Collections.Remove(collection);

            if (SelectedCollection == collection)
            {
                SelectedCollection = null;
            }

            CollectionRemoved?.Invoke(this, collection);
        }
Exemplo n.º 3
0
 internal virtual void RaiseCollectionRemoved(LocalizationTableCollection collection) => CollectionRemoved?.Invoke(collection);