summaryrefslogtreecommitdiff
path: root/Aktywator
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-29 23:29:32 +0200
committeremkael <emkael@tlen.pl>2017-07-29 23:29:32 +0200
commit7e99f04ff067ba16483efa93130a7eb86af2c72d (patch)
tree7f4ad979fbcfa3b90271efdadd90caf6c00e0335 /Aktywator
parenta010562f87309ca060c7f5028a65608317ffb4c0 (diff)
Refactoring shameful piece of code
Diffstat (limited to 'Aktywator')
-rw-r--r--Aktywator/Bws.cs20
1 files changed, 4 insertions, 16 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs
index 335bc11..553e91d 100644
--- a/Aktywator/Bws.cs
+++ b/Aktywator/Bws.cs
@@ -528,22 +528,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)