Exemplo n.º 1
0
        public static void AddWordToList(Group g, Word newWord)
        {
            var wordsList = VocabularySerializer.Deserialize(g.Words);

            wordsList.Add(newWord);
            g.Words = VocabularySerializer.Serialize(wordsList);
        }
Exemplo n.º 2
0
        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();
        }