public void Add(string _headline, string _subheadline, string _gradientback1, string _gradientback2) { var item = new WordNoteBookViewModel(WordNoteBookHelper.Add(_headline, _subheadline, _gradientback1, _gradientback2)); WordNoteBookViewModelCollection.Add(item); AddNewItemIntoTheGrid(item); Count(); }
public void GetAll() { WordNoteBookViewModelCollection.Clear(); WordNoteBookStackPanel.Children.Clear(); foreach (var item in WordNoteBookHelper.All()) { WordNoteBookViewModelCollection.Add(new WordNoteBookViewModel(item)); } foreach (var item in WordNoteBookViewModelCollection) { AddNewItemIntoTheGrid(item); } Count(); }