Exemplo n.º 1
0
        private void StartLoading(Stopwatch timer)
        {
            UpdateProgress("Reading Config File");
            AlexaComp.ReadConfig();

            UpdateProgress("Creating Port Map", 400);
            AlexaCompSERVER.ForwardPort();

            UpdateProgress("Scanning for RGB Devices");
            AlexaComp.LightingControlThread.Start();

            UpdateProgress("Assigning Sensors");
            HardwareController.InitSensors();

            UpdateProgress("Getting Installed Programs");
            ProgramInventory.ScanDir();

            UpdateProgress("Starting Server");
            AlexaCompCore.ServerThread.Start();

            UpdateProgress("Starting Server Loop");
            AlexaCompCore.ServerLoopThread.Start();

            UpdateProgress("Starting AlexaComp", 400);
            CloseSplashScreen();

            AlexaComp.AppWindowThread.Start();
            timer.Stop();
            AlexaCompCore.Clog(String.Format("Application Window started in {0} ms.", timer.ElapsedMilliseconds));
        }