예제 #1
0
        private void Electrical_Click(object sender, EventArgs e)
        {
            SampleDataContext db = new SampleDataContext();

            dataGridView1.DataSource = db.EngineeringStudents.OfType <EEE>().ToList();
        }
예제 #2
0
        private void ComputerScience_Click(object sender, EventArgs e)
        {
            SampleDataContext db = new SampleDataContext();

            dataGridView1.DataSource = db.EngineeringStudents.OfType <CSE>().ToList();
        }