summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-11-10 15:15:45 +0100
committeremkael <emkael@tlen.pl>2017-11-10 15:15:45 +0100
commita1ff38c72ff67fd980e7354645ed51159d10575e (patch)
tree7b52a238e737bdeed063b14da252d9744c1350bb
parentcf23b76ef751912304c593443832d1410574119a (diff)
Ordering columns by board number in hand records grid.
Fixes #3
-rw-r--r--Aktywator/Bws.cs8
-rw-r--r--Aktywator/Resources/BuildDate.txt2
2 files changed, 5 insertions, 5 deletions
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<int, List<string>> boards = this.loadSectionBoards(sections);
+ SortedDictionary<int, List<string>> boards = this.loadSectionBoards(sections);
foreach (KeyValuePair<int, List<string>> 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<int, List<string>> loadSectionBoards(string[] sections) {
- Dictionary<int, List<string>> boards = new Dictionary<int, List<string>>();
+ private SortedDictionary<int, List<string>> loadSectionBoards(string[] sections) {
+ SortedDictionary<int, List<string>> boards = new SortedDictionary<int, List<string>>();
foreach (string section in sections)
{
string sectionLetter = this.sectorNumberToLetter(Int16.Parse(section));
@@ -91,7 +91,7 @@ namespace Aktywator
return boards;
}
- private void displayHandRecordInfo(Dictionary<int, List<string>> boards)
+ private void displayHandRecordInfo(SortedDictionary<int, List<string>> boards)
{
Dictionary<int, Dictionary<string, HandInfo>> handInfo = this.loadHandRecordInfo();
foreach (KeyValuePair<int, List<string>> 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