public static void AddWordToList(Group g, Word newWord) { var wordsList = VocabularySerializer.Deserialize(g.Words); wordsList.Add(newWord); g.Words = VocabularySerializer.Serialize(wordsList); }
async void OnSaveButtonClicked(object sender, EventArgs e) { var group = (Group)BindingContext; group.Words = VocabularySerializer.Serialize(_words); group.Size = _words.Count; await App.Database.SaveGroupAsync(group); await Navigation.PopAsync(); }