예제 #1
0
        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");
            }
        }
예제 #2
0
 public NewCategory(ClassInformationForm parent)
 {
     this.InitializeComponent();
     classInformationForm = parent;
 }
예제 #3
0
 public NewReport(ClassInformationForm parent)
 {
     InitializeComponent();
     classInformationForm = parent;
 }
예제 #4
0
 public EditReport(ClassInformationForm passedForm)
 {
     classInformationForm = passedForm;
     InitializeComponent();
 }