Exemplo n.º 1
0
 private void futureLogToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FutureTaskDescription futureDescription = new FutureTaskDescription(JournalTask.EntryMode.migrate, selectedId, 0, JournalTask.EntryType.monthly))
     {
         futureDescription.OnFutureTaskSaved += OnMonthlyTaskSave;
         futureDescription.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private void Edit()
 {
     using (FutureTaskDescription notesDescription = new FutureTaskDescription(JournalTask.EntryMode.edit, selectedId, layer))
     {
         notesDescription.OnFutureTaskSaved += OnFutureTaskSave;
         notesDescription.ShowDialog();
     }
 }
Exemplo n.º 3
0
 private void Add_Future()
 {
     using (FutureTaskDescription monthlyTaskDescription = new FutureTaskDescription(JournalTask.EntryMode.add, -1, 0))
     {
         monthlyTaskDescription.OnFutureTaskSaved += this.OnSave;
         monthlyTaskDescription.ShowDialog();
     }
 }
Exemplo n.º 4
0
 private void Add_FutureTask()
 {
     using (FutureTaskDescription notes = new FutureTaskDescription(JournalTask.EntryMode.add, id, layer))
     {
         notes.OnFutureTaskSaved += this.OnFutureTaskSave;
         notes.ShowDialog();
     }
 }
Exemplo n.º 5
0
        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();
                }
            }
        }