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