private void btnGetUserInput_Click(object sender, EventArgs e) { using (var detailForm = new DetailForm()) { detailForm.ShowDialog(); SetStudentName(detailForm.Name); } }
private void btnGetUserInput_Click(object sender, EventArgs e) { using (var detailForm = new DetailForm()) { detailForm.ShowDialog(); EmployeeName = detailForm.Name; } }