public override void Remove() { var firstElement = base.Collection[0]; base.Collection.RemoveAt(0); CollectionRemoved.Append($"{firstElement} "); }
void OnCollectionRemoved(Collection collection) { CollectionRemoved?.Invoke(collection); if (tickergenerator.CollectionCount == 0) { context.GetModule <TickerModule>().RemoveSource(tickergenerator); } }
/// <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); }
internal virtual void RaiseCollectionRemoved(LocalizationTableCollection collection) => CollectionRemoved?.Invoke(collection);