Exemplo n.º 1
0
        private void refreshGrid()
        {
            comboBox3.Items.Clear();
            if (comboBox1.SelectedIndex == 0)
            {
                //Student Info
                studentsDetailsController.fillDataGridDetails(ref dataGridView1, selectedSyid);
                label3.Text       = "Grade Level : ";
                label3.Visible    = true;
                comboBox3.Visible = true;

                foreach (string grade in DataClass.getAllGrade())
                {
                    comboBox3.Items.Add(grade);
                }

                label4.Visible    = false;
                comboBox4.Visible = false;
            }
            else if (comboBox1.SelectedIndex == 1)
            {
                label3.Text       = "Grade Level : ";
                label3.Visible    = true;
                comboBox3.Visible = true;

                foreach (string grade in DataClass.getAllGrade())
                {
                    comboBox3.Items.Add(grade);
                }

                label4.Visible    = true;
                comboBox4.Visible = true;
            }
            else if (comboBox1.SelectedIndex == 2)
            {
                //requirements
                //requirementsController.fillDataGridSchoolReq(ref dataGridView1, selectedSyid);
                label4.Visible    = false;
                comboBox4.Visible = false;
                label3.Visible    = false;
                comboBox3.Visible = false;
                studentBalance.fillDataGridTotal(ref dataGridView1, selectedSyid);
            }
        }
Exemplo n.º 2
0
 public Records()
 {
     InitializeComponent();
     studentBalance.fillDataGridTotal(ref dataGridView1);
     yrids = yr.fillComboSy(ref comboBox1);
 }