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