Esempio n. 1
0
        private void AddTaskButton_Click(object sender, EventArgs e)
        {
            TaskCreateForm form = new TaskCreateForm(
                Subjects[subjectComboBox.SelectedIndex].Id,
                Groups[groupComboBox.SelectedIndex].Id);

            form.TaskCreated += Form_TaskCreated;

            form.Show();
        }
Esempio n. 2
0
        private void Item_TaskEdited(object sender, EventArgs e)
        {
            TaskCreateForm form = new TaskCreateForm(
                sender as TaskExtModel,
                Subjects[subjectComboBox.SelectedIndex].Id,
                Groups[groupComboBox.SelectedIndex].Id);

            form.TaskEdited += Form_TaskEdited;;

            form.Show();
        }