예제 #1
0
        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;
        }
예제 #2
0
 public void SaveHeader()
 {
     _userDatabase.InsertOrUpdateCollection(_databaseCollection);
 }