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