private void btnAddTask_Click(object sender, EventArgs e) { var addTask = new AddTask(); addTask.ShowDialog(); refreshTaskList(); }