// Handle Input
        public override void HandleInput()
        {
            if (InputManager.IsActionPressed(InputManager.Action.Ok) && IsActive)
            {
                // Raise the accepted event, then exit the message box.
                Continue?.Invoke(this, EventArgs.Empty);

                AudioManager.PlayCue("closeWindow");

                ExitScreen();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Move to the next step
        /// </summary>
        /// <param name="source"></param>
        /// <param name="e"></param>
        public void ContinueClicked(Object source, EventArgs e)
        {
            Dispatcher.Invoke(new Action(() => {
                sensorOverlay.Opacity = 1;
                thanksMsg.Opacity     = 1;
                cursor.Opacity        = 0;
                canvasBorder.Opacity  = 0;
                buttonBar.Opacity     = 0;
            }));

            Timer t = new Timer(THANKS_DURATION);

            t.Elapsed += (ss, ee) => Continue?.Invoke(Text);
            t.Start();
        }
Ejemplo n.º 3
0
        private StepMode OnPause(DebugInformation e)
        {
            // If we've been running (not stepping) and got here (through Break), revert to stepping
            Stop();

            IsRunning = false;
            Pause?.Invoke(e);

            // We've now handed control over to the UI. Keep the debugger thread
            // waiting until the UI gets back to us:
            waitForInterface.WaitOne();
            // ... then start the cycle over:
            waitForInterface.Reset();

            IsRunning = true;
            Continue?.Invoke();

            return(nextStep);
        }
Ejemplo n.º 4
0
        protected override void OnContinue()
        {
            try
            {
                ServiceStatus.dwCurrentState  = ServiceContinuePending;
                ServiceStatus.dwWin32ExitCode = 0;
                ServiceStatus.dwWaitHint      = ServiceContinueTimeout;
                SetServiceStatus(ServiceHandle, ref ServiceStatus);

                Continue?.Invoke(this, EventArgs.Empty);

                ServiceStatus.dwCurrentState = ServiceRunning;
            }
            catch (Exception e)
            {
                WriteEntry(ServiceName, $"{ServiceName} threw an exception: {e}", EventLogEntryType.Error);
                ServiceStatus.dwWin32ExitCode = (int)Win32Error.ErrorExceptionInService;
            }
            finally
            {
                ServiceStatus.dwWaitHint = 0;
                SetServiceStatus(ServiceHandle, ref ServiceStatus);
            }
        }
    public void OnContinue()
    {
        InstructionManager.Instance.CreateNewInstruction(keyboardText, DateTime.Now);

        Continue?.Invoke(this, null);
    }
Ejemplo n.º 6
0
 private void ContinueCallback(object sender, EventArgs e)
 {
     Continue?.Invoke();
 }
Ejemplo n.º 7
0
 public void OnClick_Continue()
 {
     Continue?.Invoke();
 }
Ejemplo n.º 8
0
 public void TriggerContinue() => Continue?.Invoke();
Ejemplo n.º 9
0
 private void OnContinueButtonPointerUp()
 {
     Continue?.Invoke();
 }