Example #1
0
        private void addLink_Click(object sender, EventArgs e)
        {
            Form NewTaskForm = new NewTaskForm(taskControler, reminderDateTime.Value);

            NewTaskForm.ShowDialog();
            reminderTabControl.SelectedTab = homeTab;
            PrintDayTasks(reminderDateTime.Value.ToShortDateString());
        }
Example #2
0
        private void editButton_Click(object sender, EventArgs e)
        {
            Form NewTaskForm = new NewTaskForm(taskControler, reminderDateTime.Value, detailsBox.Text);

            NewTaskForm.ShowDialog();
            taskControler.Remove((Task)taskDetailsTab.Tag);
            reminderTabControl.SelectedTab = homeTab;
            PrintDayTasks(reminderDateTime.Value.ToShortDateString());
        }
Example #3
0
        private void notesDataGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex != 2)
            {
                NewTaskForm form = new NewTaskForm(taskControler, ((List <Task>)notesDataGrid.DataSource)[notesDataGrid.SelectedRows[0].Index]);
                form.ShowDialog();

                PrintDayTasks(datePicker.Value.ToShortDateString());
            }
        }
Example #4
0
        private void addBtn_Click(object sender, EventArgs e)
        {
            NewTaskForm form = new NewTaskForm(taskControler, datePicker.Value);

            form.ShowDialog();

            PrintDayTasks(datePicker.Value.ToShortDateString());

            int j = 0;
        }