Exemplo n.º 1
0
 private void AddHabits()
 {
     using (HabitDescription habitDescription = new HabitDescription(JournalTask.EntryMode.add, -1))
     {
         habitDescription.OnHabitSaved += RefreshGrid;
         habitDescription.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private void Edit()
 {
     using (HabitDescription notesDescription = new HabitDescription(JournalTask.EntryMode.edit, selectedId))
     {
         notesDescription.OnHabitSaved += RefreshGrid;
         notesDescription.ShowDialog();
     }
 }