Beispiel #1
0
        private void metroComboBoxMod_SelectedIndexChanged(object sender, EventArgs e)
        {
            Module             m  = new Module();
            ModuleTransactions mt = new ModuleTransactions();

            mt.dataFillCMBX(metroComboBoxMod.Text);
            m = mt.datafill(metroComboBoxMod.Text);
            metroComboBoxMod.Text = m.getID();
            metroTextBoxMod.Text  = m.getMName();
            metroTextBoxF.Text    = m.getFaculty();
            metroTextD.Text       = m.getDuration();
            metroTextBoxMFee.Text = m.getModulefee();
            metroTextBoxSem.Text  = m.getSemester();
        }
        private void metroComboBoxFac_SelectedIndexChanged(object sender, EventArgs e)
        {
            Module             m  = new Module();
            ModuleTransactions mt = new ModuleTransactions();

            mt.dataFillCMBX(metroComboBoxMod.Text);
            m = mt.datafill(metroComboBoxMod.Text);
            metroComboBoxMod.Text   = m.getID();
            metroTextBoxModule.Text = m.getMName();
            metroTextBoxFac.Text    = m.getFaculty();
            metroTextBoxDur.Text    = m.getDuration();
            metroTextBoxMFee.Text   = m.getModulefee();
            loadSessionProfessorModule();
            loadSessionStudentModule();
        }