Exemple #1
0
        private void BtnAddTask_Click(object sender, EventArgs e)
        {
            var addTaskForm = new AddTaskForm()
            {
                passData     = new AddTaskForm.PassData(PassData),
                showMainForm = new AddTaskForm.ShowMainForm(Show)
            };

            addTaskForm.Show();
            this.Hide();
        }
Exemple #2
0
        private void EditTask(Task task, Author author)
        {
            var addTaskForm = new AddTaskForm(task, author)
            {
                Text         = "Edit task",
                passData     = new AddTaskForm.PassData(PassData),
                showMainForm = new AddTaskForm.ShowMainForm(Show)
            };

            addTaskForm.ShowDialog();
        }