Inheritance: RealmObject
        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));
 }
 private void DeleteEntry(JournalEntry entry)
 {
     _realm.Write(() => _realm.Remove(entry));
 }
示例#4
0
        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, Transaction transaction)
 {
     Entry        = entry;
     _transaction = transaction;
     SaveCommand  = new Command(Save);
 }
示例#7
0
 public JournalEntryDetailsViewModel(JournalEntry entry)
 {
     Entry       = entry;
     SaveCommand = new Command(Save);
 }