Beispiel #1
0
 private void OnEntryEditingFinished(EntryEditingFinishedEvent e)
 {
 }
Beispiel #2
0
        private async void OnEntryEditingFinished(EntryEditingFinishedEvent e)
        {
            Telemetry.Client.TrackUserAction("AddWord.Save");

            IsAddingWord = true;

            try
            {
                var entry = e.Data;

                if (string.IsNullOrEmpty(entry.Id))
                {
                    await AddNewEntryAsync(entry);
                }
                else
                {
                    await UpdateEntryAsync(entry);
                }

                EntryTextEditorViewModel.Clear();
            }
            finally
            {
                IsAddingWord = false;
            }
        }