From 5738d7e27fa1da52cbe50a2e26a0bd3a7749335e Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 26 Nov 2016 17:41:19 +0100 Subject: * reading boards only for selected sections (and accummulating count) --- Aktywator/Bws.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Aktywator/Bws.cs') diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index 606de96..335bc11 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -514,9 +514,10 @@ namespace Aktywator } } - public void loadHandRecords(PBN pbn) + public int loadHandRecords(PBN pbn) { - foreach (string section in this.getSections().Split(',')) + int count = 0; + foreach (string section in this.getSelectedSections()) { this.clearRecords(section); for (int i = this.lowBoard(section.Trim()); i <= this.highBoard(section.Trim()); i++) @@ -570,8 +571,10 @@ namespace Aktywator ddStr.Append(")"); sql.query(ddStr.ToString()); } + count++; } } + return count; } } } -- cgit v1.2.3