//Opens an existing lootbook. public void OpenLootBook() { DataHandler handler = new DataHandler(); book = handler.ReadData(); view_items = (CollectionView)CollectionViewSource.GetDefaultView(book.lootlist); view_items.Filter = LootFilter; }
//Creates a new lootbook. public void NewLootBook() { book = new LootBook(); view_items = (CollectionView)CollectionViewSource.GetDefaultView(book.lootlist); view_items.Filter = LootFilter; }