示例#1
0
        public Dashboard()
        {
            InitializeComponent();

            AppConsole.RegisterTextbox(appConsole);
            AppConsole.RedirectConsoleOutput();

            _centralClock = new CentralClock <TResponseData>(this);

            _centralClock.FrameGenerated += CentralClockOnFrameGenerated;
            _centralClock.StateGenerated += CentralClockOnStateGenerated;
            _centralClock.DataGenerated  += CentralClockOnDataGenerated;

            ApplicationConfig.ConfigUpdated += (config) =>
            {
                auxVideoStream.MJPEGUrl  = config.AuxVideoUrl;
                mainVideoStream.MJPEGUrl = config.MainVideoUrl;
            };

            auxVideoStream.MJPEGUrl  = ApplicationConfig.Shared.AuxVideoUrl;
            mainVideoStream.MJPEGUrl = ApplicationConfig.Shared.MainVideoUrl;

            LogicMapper <TResponseData> .InputProcessor.ButtonPress += InputProcessorOnButtonPress;
        }