private void EditButton_Click(object sender, EventArgs e) { Student studnet = _crudStudent.ReadStudentCard(currentFileName); using (var newUpdate = new AddFormStudent(this, studnet, currentFileName, FlagAddOrUpdate.Update)) { newUpdate.ShowDialog(); } }
private void AddButton_Click(object sender, EventArgs e) { AddFormStudent newAddFormStudent = new AddFormStudent(this); newAddFormStudent.ShowDialog(); }