private void viewClassButton_Click(object sender, EventArgs e) { ClassInformationForm classInformationForm = new ClassInformationForm(); if (classesListBox.SelectedItem != null) { classInformationForm.classCategoriesContainer = classContainer.classCategoriesContainer[classesListBox.SelectedIndex]; classInformationForm.classInformationNameLabel.Text = classContainer.classCategoriesContainer[classesListBox.SelectedIndex].className; classInformationForm.ShowDialog(); } else { MessageBox.Show("A class needs to be selected before it can be viewed.", "Grade Tracker"); } }
public NewCategory(ClassInformationForm parent) { this.InitializeComponent(); classInformationForm = parent; }
public NewReport(ClassInformationForm parent) { InitializeComponent(); classInformationForm = parent; }
public EditReport(ClassInformationForm passedForm) { classInformationForm = passedForm; InitializeComponent(); }