private void SaveEdit_Click(object sender, RoutedEventArgs e) { EntryViewText.SelectAll(); BaseEntry.Text = EntryViewText.Selection.Text; BaseEntry.User = UserContext.User; BaseEntry.UpdateEntry(); SnackbarThree.MessageQueue.Enqueue($"{BaseEntry.Title} Has been updated"); }
private void EntryList_SelectionChanged(object sender, SelectionChangedEventArgs e) { Entry entry = new Entry(); EntryViewText.SelectAll(); EntryViewText.Selection.Text = ""; entry = (Entry)EntryList.SelectedItem; BaseEntry = entry; TitleText.Text = entry.Title; DateText.Text = entry.EntryDate.ToShortDateString(); LocationText.Text = $"{entry.Location.City}, {entry.Location.State}"; EntryViewText.AppendText(entry.Text); }