private void AddTaskButtonClick(object sender, EventArgs e) { var addTaskForm = new AddTaskForm(this, Session); addTaskForm.UpdateAndShow(); Hide(); }