diff options
author | emkael <emkael@tlen.pl> | 2016-11-20 01:16:39 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-20 01:16:39 +0100 |
commit | 77d5507bb68d431d59a78741839be999959efab4 (patch) | |
tree | 7c216b4729e71c9291912a299ae9d4eff238c82c /Aktywator | |
parent | 9f98d9717425b7356ad7b2b8fe8591fccd807e7d (diff) |
* lowSection just like highSection, for now
Diffstat (limited to 'Aktywator')
-rw-r--r-- | Aktywator/Bws.cs | 10 |
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); |