From a1ff38c72ff67fd980e7354645ed51159d10575e Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 10 Nov 2017 15:15:45 +0100 Subject: Ordering columns by board number in hand records grid. Fixes #3 --- Aktywator/Bws.cs | 8 ++++---- Aktywator/Resources/BuildDate.txt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'Aktywator') diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index cde192a..9dedb84 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -46,7 +46,7 @@ namespace Aktywator row.HeaderCell.Value = this.sectorNumberToLetter(Int16.Parse(section)); main.gwSections.Rows.Add(row); } - Dictionary> boards = this.loadSectionBoards(sections); + SortedDictionary> boards = this.loadSectionBoards(sections); foreach (KeyValuePair> boardList in boards) { main.gwSections.Columns.Add(new DataGridViewTextBoxColumn { HeaderText = boardList.Key.ToString(), Width = 22, DefaultCellStyle = { ForeColor = Color.White, Alignment = DataGridViewContentAlignment.MiddleCenter } }); @@ -72,8 +72,8 @@ namespace Aktywator this.displayHandRecordInfo(boards); } - private Dictionary> loadSectionBoards(string[] sections) { - Dictionary> boards = new Dictionary>(); + private SortedDictionary> loadSectionBoards(string[] sections) { + SortedDictionary> boards = new SortedDictionary>(); foreach (string section in sections) { string sectionLetter = this.sectorNumberToLetter(Int16.Parse(section)); @@ -91,7 +91,7 @@ namespace Aktywator return boards; } - private void displayHandRecordInfo(Dictionary> boards) + private void displayHandRecordInfo(SortedDictionary> boards) { Dictionary> handInfo = this.loadHandRecordInfo(); foreach (KeyValuePair> board in boards) diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt index 19d5ac5..3649349 100644 --- a/Aktywator/Resources/BuildDate.txt +++ b/Aktywator/Resources/BuildDate.txt @@ -1 +1 @@ -2017-10-17 +2017-11-10 -- cgit v1.2.3