// 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(); } }
/// <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(); }
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); }
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); }
private void ContinueCallback(object sender, EventArgs e) { Continue?.Invoke(); }
public void OnClick_Continue() { Continue?.Invoke(); }
public void TriggerContinue() => Continue?.Invoke();
private void OnContinueButtonPointerUp() { Continue?.Invoke(); }