コード例 #1
0
        private void OnAppLauncherEvent(AppLauncherEvent appLauncherEvent)
        {
            Log.Trace("Entering PlaneMode.OnAppLauncherEvent()");

            switch (appLauncherEvent)
            {
            case AppLauncherEvent.OnTrue:
                _showConfigWindow = true;
                break;

            case AppLauncherEvent.OnFalse:
                _showConfigWindow = false;
                break;

            case AppLauncherEvent.OnToggle:
                _showConfigWindow = !_showConfigWindow;
                break;

            case AppLauncherEvent.OnHover:
                break;

            case AppLauncherEvent.OnHoverOut:
                break;

            case AppLauncherEvent.OnEnable:
                break;

            case AppLauncherEvent.OnDisable:
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(appLauncherEvent));
            }

            Log.Trace("Leaving PlaneMode.OnAppLauncherEvent()");
        }
コード例 #2
0
        private void OnAppLauncherEvent(AppLauncherEvent appLauncherEvent)
        {
            Log.Trace("Entering PlaneMode.OnAppLauncherEvent()");

            switch (appLauncherEvent)
            {
            case AppLauncherEvent.OnTrue:
                Log.Debug("Application Launcher button changed to True mode, setting control mode to Plane");
                SetControlMode(ControlMode.Plane);
                break;

            case AppLauncherEvent.OnFalse:
                Log.Debug("Application Launcher button changed to False mode, setting control mode to Rocket");
                SetControlMode(ControlMode.Rocket);
                break;

            case AppLauncherEvent.OnHover:
                break;

            case AppLauncherEvent.OnHoverOut:
                break;

            case AppLauncherEvent.OnEnable:
                Log.Debug("Application Launcher button is enabled, updating interface");
                UpdateInterface();
                break;

            case AppLauncherEvent.OnDisable:
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(appLauncherEvent));
            }

            Log.Trace("Leaving PlaneMode.OnAppLauncherEvent()");
        }
コード例 #3
0
        private void OnAppLauncherEvent(AppLauncherEvent appLauncherEvent)
        {
            Log.Trace("Entering PlaneMode.OnAppLauncherEvent()");

            switch (appLauncherEvent)
            {
                case AppLauncherEvent.OnTrue:
                    _showConfigWindow = true;
                    break;
                case AppLauncherEvent.OnFalse:
                    _showConfigWindow = false;
                    break;
                case AppLauncherEvent.OnHover:
                    break;
                case AppLauncherEvent.OnHoverOut:
                    break;
                case AppLauncherEvent.OnEnable:
                    break;
                case AppLauncherEvent.OnDisable:
                    break;
                default:
                    throw new ArgumentOutOfRangeException(nameof(appLauncherEvent));
            }

            Log.Trace("Leaving PlaneMode.OnAppLauncherEvent()");
        }
コード例 #4
0
        private void OnAppLauncherEvent(AppLauncherEvent appLauncherEvent)
        {
            Log.Trace("Entering PlaneMode.OnAppLauncherEvent()");

            switch (appLauncherEvent)
            {
                case AppLauncherEvent.OnTrue:
                    Log.Debug("Application Launcher button changed to True mode, setting control mode to Plane");
                    SetControlMode(ControlMode.Plane);
                    break;
                case AppLauncherEvent.OnFalse:
                    Log.Debug("Application Launcher button changed to False mode, setting control mode to Rocket");
                    SetControlMode(ControlMode.Rocket);
                    break;
                case AppLauncherEvent.OnHover:
                    break;
                case AppLauncherEvent.OnHoverOut:
                    break;
                case AppLauncherEvent.OnEnable:
                    Log.Debug("Application Launcher button is enabled, updating interface");
                    UpdateInterface();
                    break;
                case AppLauncherEvent.OnDisable:
                    break;
                default:
                    throw new ArgumentOutOfRangeException(nameof(appLauncherEvent));
            }

            Log.Trace("Leaving PlaneMode.OnAppLauncherEvent()");
        }