Пример #1
0
 public void addDevices(IEnumerable <Device> devices)
 {
     if (!container.ContainsKey(DEVICES))
     {
         container.Add(DEVICES, PointAndControlMain.MakeDeviceString(devices));
     }
 }
Пример #2
0
        /// <summary>
        /// Initializes the IGS with all and uses the other initialition methods to add the needed Dataholder, Usertracker and HTTP server.
        /// </summary>
        /// <returns>The pncMain with its needed components</returns>
        public static PointAndControlMain InitializeIgs()
        {
            xmlFilesControl();
            EventLogger         logger = new EventLogger();
            PointAndControlMain igs    = new PointAndControlMain(InitializeDataholder(logger), InitializeUserTracker(new HandsUp(), new Lfu()), InitializeHttpServer(), logger);

            igs.isRunning = true;
            return(igs);
        }