internal void EditEntry(JournalEntry entry) { var transaction = _realm.BeginWrite(); var page = new JournalEntryDetailsPage(new JournalEntryDetailsViewModel(entry, transaction)); Navigation.PushAsync(page); }
private void DeleteEntry(JournalEntry entry) { _realm.Write(() => _realm.Remove(entry)); }
internal void EditEntry(JournalEntry entry) { var page = new JournalEntryDetailsPage(new JournalEntryDetailsViewModel(entry)); Navigation.PushAsync(page); }
public JournalEntryDetailsViewModel(JournalEntry entry, Transaction transaction) { Entry = entry; _transaction = transaction; SaveCommand = new Command(Save); }
public JournalEntryDetailsViewModel(JournalEntry entry) { Entry = entry; SaveCommand = new Command(Save); }