コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            SHomeP.BringToFront();
            sHomeSemistercomboBox.DataSource =
                DataAccess.GetDataTable("select semister from taken_course where sId='" + _sid + "' group by semister");

            sHomeSemistercomboBox.DisplayMember  = "semister";
            sHomeSemisterDataGridView.DataSource = DataAccess.GetDataTable("select course_id as 'Course id',course_name as 'Course name',fname as 'Faculty',mid_grade as 'Mid',final_grade as 'Final' from taken_course where semister='" + sHomeSemistercomboBox.GetItemText(sHomeSemistercomboBox.SelectedItem) + "' and sId='" + _sid + "'");
        }
コード例 #2
0
 public Student(string sid)
 {
     _sid = sid;
     InitializeComponent();
     SHomeP.BringToFront();
 }