private void cmbStudent_EditValueChanged(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); var query = dc.SelectCurScore((int)cmbStudent.EditValue).First(); lblCurScore.Text = query.ScoreSum.ToString(); }
private void cmbStudent_EditValueChanged(object sender, EventArgs e) { var dc = new ClassSRMDataContext(Config.connection); var query = dc.SelectCurScore((int)cmbStudent.EditValue).First(); lblCurScore.Text = query.ScoreSum.ToString(); }