private void mnuTasksAdd_Click(object sender, EventArgs e) { using (NewTaskDialog ntd = new NewTaskDialog()) { ntd.StartPosition = FormStartPosition.CenterParent; if (ntd.ShowDialog() == DialogResult.OK) { AddNewTaskToCurrentTask(ntd.TaskLabel, ntd.TaskDescription); } } }