From 77d5507bb68d431d59a78741839be999959efab4 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 20 Nov 2016 01:16:39 +0100 Subject: * lowSection just like highSection, for now --- Aktywator/Bws.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Aktywator/Bws.cs') 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); -- cgit v1.2.3