Ejemplo n.º 1
0
        private void FHomeB_Click(object sender, EventArgs e)
        {
            FHomeP.BringToFront();
            FHomeSemistercomboBox.DataSource =
                DataAccess.GetDataTable("select semister from taken_course where fId='" + _fid + "' group by semister");

            FHomeSemistercomboBox.DisplayMember  = "semister";
            FHomeSemisterDataGridView.DataSource = DataAccess.GetDataTable("select course_id as 'Course id',course_name as 'Course name',creadit as 'Creadit'  from taken_course where semister='" + FHomeSemistercomboBox.GetItemText(FHomeSemistercomboBox.SelectedItem) + "' and fId='" + _fid + "'");
        }
Ejemplo n.º 2
0
 public Faculty(string id)
 {
     _fid = id;
     InitializeComponent();
     FHomeP.BringToFront();
 }