private void Querr(int classId) { //定义方法的输出参数 Dictionary <string, string> dic = null; List <string> list = null; try { List <StudentExt> scoreList = scoreListService.Query1(classId, out dic, out list); this.dgvScoreList.DataSource = scoreList; this.lblList.Items.AddRange(list.ToArray()); this.lblAttendCount.Text = dic["stuCount"]; this.lblCSharpAvg.Text = dic["avgCSharp"]; this.lblDBAvg.Text = dic["avgDB"]; this.lblCount.Text = dic["absentCount"]; } catch (Exception e) { Console.WriteLine(e); throw; } }