private void MainMenu_Load(object sender, EventArgs e) { if (sampleRoster is null) { Student[] seedStudents = new Student[6] { new Student { ID = 1, FirstName = "Terence", LastName = "Lee", Status = "Graduate Student", Major = "Computer Science", GPA = "3.41" }, new Student { ID = 2, FirstName = "Terence", LastName = "Hilson", Status = "Senior", Major = "Electrical Engineering", GPA = "2.9" }, new Student { ID = 3, FirstName = "Kerri", LastName = "Hilson", Status = "Freshman", Major = "Dance", GPA = "3.2" }, new Student { ID = 4, FirstName = "Justin", LastName = "Fellinger", Status = "Freshman", Major = "Marketing", GPA = "1.75" }, new Student { ID = 5, FirstName = "Mena", LastName = "Yang", Status = "Junior", Major = "Marketing", GPA = "2.5" }, new Student { ID = 6, FirstName = "Ana", LastName = "Stamatiou", Status = "Sophomore", Major = "Education", GPA = "2.5" } }; sampleRoster = new StudentHashTable(seedStudents); } }
public SearchForm(StudentHashTable theRoster) { InitializeComponent(); currentRoster = theRoster; oldColumn = -1; searchResults = new Student[0]; sortAscending = new bool[6]; for (int i = 0; i < sortAscending.Length; i++) { sortAscending[i] = false; } }
public AddForm(StudentHashTable theRoster) { InitializeComponent(); currentRoster = theRoster; }
public MainMenu(StudentHashTable theRoster) { InitializeComponent(); sampleRoster = theRoster; }
public MainMenu() { InitializeComponent(); sampleRoster = null; }
public RemoveForm(StudentHashTable theRoster) { InitializeComponent(); studentHashTable = theRoster; theDataSource = studentHashTable.DataForDisplay().OrderBy(pupil => pupil.ID).ToArray(); }