コード例 #1
0
        protected override void StartProgram()
        {
            CrestronConsole.PrintLine("GO!");
            Configs = new ProjectConfig();
            Configs.GetEmbeddedConfigs(Assembly.GetExecutingAssembly());
            Configs.UpdateConfigs();

            var initialiser = SystemInitialiser.Create();

            initialiser();
        }
コード例 #2
0
        public static Action Create()
        {
            var init        = new SystemInitialiser();
            var initActions = new List <Action> {
                init.CreateTouchPanels,
                init.CreateDisplay,
                init.CreateSwitcher,
                init.CreateRoomState
            };

            var newActionQueue = new ActionQueue("SystemInitialiser", initActions);

            newActionQueue.AddFeedbackPath(new ConsolePercentageFeedback());
            newActionQueue.Start();
            return(Initialise);
        }