From 5889bc6ddf0c63035b88ca3f45cc879d15b4cfc6 Mon Sep 17 00:00:00 2001 From: szporowolik Date: Mon, 21 Oct 2019 16:55:44 +0200 Subject: [PATCH] SRS and LotATC sending will now look better in log files --- .../Perun_v1/01_Classes/DatabaseController.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/02_Windows_App/Perun_v1/01_Classes/DatabaseController.cs b/02_Windows_App/Perun_v1/01_Classes/DatabaseController.cs index 3cee1c7..a979024 100644 --- a/02_Windows_App/Perun_v1/01_Classes/DatabaseController.cs +++ b/02_Windows_App/Perun_v1/01_Classes/DatabaseController.cs @@ -103,7 +103,19 @@ public class DatabaseController Console.WriteLine(rdrMySQL[0] + " -- " + rdrMySQL[1]); } rdrMySQL.Close(); - PerunHelper.GUILogHistoryAdd(ref Globals.arrGUILogHistory, "MySQL updated, package type: " + strUDPFrameType,1); + switch (Int32.Parse(strUDPFrameType)) + { + case 100: + PerunHelper.GUILogHistoryAdd(ref Globals.arrGUILogHistory, "SRS data send to MySQL", 1); + break; + case 101: + PerunHelper.GUILogHistoryAdd(ref Globals.arrGUILogHistory, "LotATC data send to MySQL", 1); + break; + default: + PerunHelper.GUILogHistoryAdd(ref Globals.arrGUILogHistory, "MySQL updated, package type: " + strUDPFrameType, 1); + break; + } + } catch (ArgumentException a_ex) {