summaryrefslogtreecommitdiff
path: root/Aktywator/Bws.cs
diff options
context:
space:
mode:
authorMichaƂ Zimniewicz <michzimny@users.noreply.github.com>2017-08-01 00:38:30 +0200
committerGitHub <noreply@github.com>2017-08-01 00:38:30 +0200
commite8e3274d55d7bf325d2360bfc4be3eb0b09c8cc7 (patch)
tree0e4a08a864769464e50e4a0e8279064b8dd90452 /Aktywator/Bws.cs
parentc9b558b71d78e9775bdc2c2dce03b08025b8ec41 (diff)
parent7e99f04ff067ba16483efa93130a7eb86af2c72d (diff)
Merge pull request #13 from emkael/master
Refactoring shameful piece of code
Diffstat (limited to 'Aktywator/Bws.cs')
-rw-r--r--Aktywator/Bws.cs20
1 files changed, 4 insertions, 16 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 0e574b8..1cc5e07 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -536,22 +536,10 @@ namespace Aktywator
str.Append("INSERT INTO HandRecord VALUES (");
str.Append(section); str.Append(",");
str.Append(i); str.Append(",'");
- str.Append(b.north[0]); str.Append("','");
- str.Append(b.north[1]); str.Append("','");
- str.Append(b.north[2]); str.Append("','");
- str.Append(b.north[3]); str.Append("','");
- str.Append(b.east[0]); str.Append("','");
- str.Append(b.east[1]); str.Append("','");
- str.Append(b.east[2]); str.Append("','");
- str.Append(b.east[3]); str.Append("','");
- str.Append(b.south[0]); str.Append("','");
- str.Append(b.south[1]); str.Append("','");
- str.Append(b.south[2]); str.Append("','");
- str.Append(b.south[3]); str.Append("','");
- str.Append(b.west[0]); str.Append("','");
- str.Append(b.west[1]); str.Append("','");
- str.Append(b.west[2]); str.Append("','");
- str.Append(b.west[3]); str.Append("')");
+ str.Append(String.Join("','", b.north)); str.Append("','");
+ str.Append(String.Join("','", b.east)); str.Append("','");
+ str.Append(String.Join("','", b.south)); str.Append("','");
+ str.Append(String.Join("','", b.west)); str.Append("')");
sql.query(str.ToString());
int[,] ddTable = pbn.ddTables[i].GetDDTable();
if (ddTable != null)