private void StudentsButtonClick(object sender, EventArgs e) { var studentsListForm = new StudentsListForm(StudentRepository, BookRentRepository); studentsListForm.AddRefreshList(); studentsListForm.ShowDialog(); }
private void studentsListToolStripMenuItem_Click(object sender, EventArgs e) { StudentsListForm stdListF = new StudentsListForm(); stdListF.Show(this); }