[chronojump] config exhibition variables (for Yomo)



commit 524b58bb844c43b604ce474edbd64f65559462c9
Author: Xavier de Blas <xaviblas gmail com>
Date:   Sun Feb 24 12:54:35 2019 +0100

    config exhibition variables (for Yomo)

 src/config.cs | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/config.cs b/src/config.cs
index 094140c0..707a86f2 100644
--- a/src/config.cs
+++ b/src/config.cs
@@ -46,6 +46,10 @@ public class Config
        public string RunScriptOnExit;
        public bool PlaySoundsFromFile;
 
+       public bool Exhibition; //like YOMO. does not have rfid capture, user autologout management, and 
automatic configuration of gui
+       public string ExhibitionServerURL = "";
+       public int ExhibitionStationID = -1;
+
        public Config()
        {
                /*
@@ -102,6 +106,12 @@ public class Config
                                                        Enum.Parse(typeof(SessionModeEnum), parts[1]);
                                        else if(parts[0] == "PlaySoundsFromFile" && 
Util.StringToBool(parts[1]))
                                                PlaySoundsFromFile = true;
+                                       else if(parts[0] == "Exhibition" && Util.StringToBool(parts[1]))
+                                               Exhibition = true;
+                                       else if(parts[0] == "ExhibitionServerURL" && parts[1] != "")
+                                               ExhibitionServerURL = parts[1];
+                                       else if(parts[0] == "ExhibitionStationID" && parts[1] != "" && 
Util.IsNumber(parts[1], false))
+                                               ExhibitionStationID = Convert.ToInt32(parts[1]);
                                } while(true);
                        }
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]