summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-11-20 01:16:39 +0100
committeremkael <emkael@tlen.pl>2016-11-20 01:16:39 +0100
commit77d5507bb68d431d59a78741839be999959efab4 (patch)
tree7c216b4729e71c9291912a299ae9d4eff238c82c
parent9f98d9717425b7356ad7b2b8fe8591fccd807e7d (diff)
* lowSection just like highSection, for now
-rw-r--r--Aktywator/Bws.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 9533c7e..9c2df11 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -417,13 +417,21 @@ namespace Aktywator
else return 0;
}
+ public int lowSection()
+ {
+ string s = sql.selectOne("SELECT min(`Section`) FROM `Tables`");
+ int i;
+ if (int.TryParse(s, out i)) return i;
+ else return 0;
+ }
+
public void loadHandRecords(PBN pbn)
{
sql.query("DELETE FROM HandRecord");
sql.query("DELETE FROM HandEvaluation");
for (int i = 0; i < pbn.handRecords.Length; i++)
if (pbn.handRecords[i] != null)
- for (int section = 1; section <= highSection(); section++)
+ for (int section = lowSection(); section <= highSection(); section++)
{
HandRecord b = pbn.handRecords[i];
StringBuilder str = new StringBuilder(50);