Esempio n. 1
0
 /// <summary>
 /// 根据当前选择的列来排序
 /// </summary>
 private void SortItemsColumnByIndex()
 {
     this.currentSubAreaDataRows = this.currentSubAreaDataRows
                                   .OrderByDescending(x =>
                                                      Convert.ToDouble(x[this.sortByColumnIndex])).ToList();
     SharedData.ShowDataRowsToListView(this.listView1, this.currentSubAreaDataRows);
 }
Esempio n. 2
0
 /// <summary>
 /// 计算并显示成绩
 /// </summary>
 private void ShowScoresForEachItem(Dictionary <int, double> dicScores)
 {
     for (int i = 0; i < this.currentSubAreaDataRows.Count; i++)
     {
         this.currentSubAreaDataRows[i][11] = dicScores[i];
     }
     SharedData.ShowDataRowsToListView(this.listView1, this.currentSubAreaDataRows);
 }
Esempio n. 3
0
        private void GetSelectedSubAreaDataRowsAndToListView()
        {
            int round   = Convert.ToInt32(this.cboRound.Text);
            int area    = Convert.ToInt32(this.cboArea.Text);
            int subArea = Convert.ToInt32(this.cboSubArea.Text);

            this.currentSubAreaDataRows = SharedData.GetScoreDatarowsOfCertainSubArea(round, area, subArea == 1);
            SharedData.ShowDataRowsToListView(this.listView1, this.currentSubAreaDataRows);
        }