From 47be743fb185ee2468c6b41128a466c87d4d8dc6 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 23 Aug 2017 12:51:41 +0200 Subject: Hand records tab redesigned to be consistent with the settings tab --- Aktywator/Bws.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Aktywator/Bws.cs') diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index e1bc061..822d39f 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -27,10 +27,10 @@ namespace Aktywator sql = new Sql(filename); this.main = main; string[] sections = this.getSections().Split(','); - main.lWczytywane.Text = this.getBoardRangeText(sections); foreach (string section in sections) { - main.cblSections.Items.Add(this.sectorNumberToLetter(Int16.Parse(section))); + int sectionNumber = Int16.Parse(section); + main.cblSections.Items.Add("sektor " + this.sectorNumberToLetter(sectionNumber) + " (rozdania " + this.lowBoard(section) + "-" + this.highBoard(section) + ")"); } for (int i = 0; i < main.cblSections.Items.Count; i++) { @@ -40,7 +40,7 @@ namespace Aktywator private int sectorLetterToNumber(string sector) { - return sector[0] - 'A' + 1; + return sector.ToUpper()[0] - 'A' + 1; } private string sectorNumberToLetter(int sector) -- cgit v1.2.3