コード例 #1
0
        public void RegisterSimValuesAndEvents()
        {
            if (toggle != null)
            {
                eventRegistrar.RegisterEvent(toggle.Value.ToString());
            }
            eventRegistrar.RegisterEvent(set.ToString());

            flightConnector.RegisterSimValues(GetSimVars().ToArray());
        }
コード例 #2
0
        public PresetChangeAction(
            ILogger logger,
            IFlightConnector flightConnector,
            IEventRegistrar eventRegistrar,
            IEventDispatcher eventDispatcher)
        {
            this.logger          = logger;
            this.flightConnector = flightConnector;
            this.eventDispatcher = eventDispatcher;

            timer = new Timer {
                Interval = 400
            };
            timer.Elapsed += Timer_Elapsed;
            eventRegistrar.RegisterEvent(KnownEvents.VOR1_SET.ToString());
            eventRegistrar.RegisterEvent(KnownEvents.VOR2_SET.ToString());
            eventRegistrar.RegisterEvent(KnownEvents.ADF_SET.ToString());
            eventRegistrar.RegisterEvent(KnownEvents.KOHLSMAN_SET.ToString());
        }