private void dailyTaskToolStripMenuItem_Click(object sender, EventArgs e) { using (CurrentTaskDescription dailyDescription = new CurrentTaskDescription(JournalTask.EntryMode.migrate, selectedId, 0, JournalTask.EntryType.monthly)) { dailyDescription.OnCurrentTaskSaved += OnMonthlyTaskSave; dailyDescription.ShowDialog(); } }
private void Edit() { using (CurrentTaskDescription notesDescription = new CurrentTaskDescription(JournalTask.EntryMode.edit, selectedId, layer)) { notesDescription.OnCurrentTaskSaved += OnCurrentTaskSave; notesDescription.ShowDialog(); } }
private void Add_Daily() { using (CurrentTaskDescription currentTaskDescription = new CurrentTaskDescription(JournalTask.EntryMode.add, -1, 0)) { currentTaskDescription.OnCurrentTaskSaved += this.OnSave; currentTaskDescription.ShowDialog(); } }
private void Add_CurrentTask() { using (CurrentTaskDescription notes = new CurrentTaskDescription(JournalTask.EntryMode.add, id, layer)) { notes.OnCurrentTaskSaved += this.OnCurrentTaskSave; notes.ShowDialog(); } }
private void Edit() { if (tabControl1.SelectedIndex == 1) { using (CurrentTaskDescription currentTaskDescription = new CurrentTaskDescription(JournalTask.EntryMode.edit, taskId, 0)) { currentTaskDescription.OnCurrentTaskSaved += OnSave; currentTaskDescription.ShowDialog(); } } if (tabControl1.SelectedIndex == 2) { using (MonthlyTaskDescription monthlyTaskDescription = new MonthlyTaskDescription(JournalTask.EntryMode.edit, taskId, 0)) { monthlyTaskDescription.OnMonthlyTaskSaved += OnSave; monthlyTaskDescription.ShowDialog(); } } if (tabControl1.SelectedIndex == 3) { using (FutureTaskDescription futureTaskDescription = new FutureTaskDescription(JournalTask.EntryMode.edit, taskId, 0)) { futureTaskDescription.OnFutureTaskSaved += OnSave; futureTaskDescription.ShowDialog(); } } if (tabControl1.SelectedIndex == 4) { using (NotesDescription notesDescription = new NotesDescription(JournalTask.EntryMode.edit, taskId, 0)) { notesDescription.OnNotesSaved += OnSave; notesDescription.ShowDialog(); } } }