public void CreateNewCollection() { var collection = new MagicCollection() { Name = "new Collection" }; _userDatabase.InsertOrUpdateCollection(collection); var viewModel = new SingleCollectionViewModell( _notification, _userDatabase, _cardDatabase, collection); var listCollection = Collections.ToList(); listCollection.Add(viewModel); Collections = listCollection; SelectedCollection = viewModel; }
public void SaveHeader() { _userDatabase.InsertOrUpdateCollection(_databaseCollection); }