private void debugger_Paused(object sender, PausedEventArgs e) { if (_isFirstDebugStop) { // ignore first pause _isFirstDebugStop = false; return; } ScriptView view = null; view = OpenFile(Debugger.FileName) as ScriptView; if (view != null) { view.ActiveLine = Debugger.LineNumber; if (e.Reason == PauseReason.Exception) { view.ErrorLine = Debugger.LineNumber; } } if (!Debugger.Running) { Activate(); } UpdateControls(); }
private void m_Template_TemplatePaused(object sender, PausedEventArgs e) { if (vlcControl.IsPlaying) { vlcControl.Pause(); } }
private void _template_TemplatePaused(object sender, PausedEventArgs e) { if (_mediaPlayer.IsPlaying) { _mediaPlayer.Pause(); } }
private void HandleSubmachinePausableNodeEntered(object sender, PausedEventArgs args) { if (SubmachinePausableNodeEntered != null) { SubmachinePausableNodeEntered(this, args); } }
private void OnSubmachinePausableNodeEntered(PausedEventArgs args) { if (SubmachinePausableNodeEntered != null) { SubmachinePausableNodeEntered(this, args); } }
protected virtual void HandleMachinePaused(object sender, PausedEventArgs args) { IsPaused = true; StopTiming(); OnSubmachinePaused(args); }
private void HandleGamePaused(PausedEventArgs isPaused) { EventHandler handler = GamePaused; if (handler != null) { handler(this, isPaused); } }
private void OnSubmachinePaused(PausedEventArgs args) { if (SubmachinePaused != null) { SubmachinePaused(this, new SubmachineEventArgs() { Machine = Machine }); } }
protected override void OnPaused(PausedEventArgs args) { var pausableNode = CurrentNode as PausableNode; if (args == null && pausableNode != null) { args = new PausedEventArgs(); args.PausedActivityNumber = pausableNode.Index; } base.OnPaused(args); }
public override void PausedHandler(PausedEventArgs e) { if (e.IsPaused) { component.Pause(); } else { component.Play(); } }
private static void OnPausedHandler(PausedEventArgs e) { if (e.IsPaused) { _playTimer.Stop(); } else { _playTimer.Start(); } }
public override void PausedHandler(PausedEventArgs e) { if (e.IsPaused) { previousVelocity = component.velocity; component.velocity = Vector3.zero; } else { component.velocity = previousVelocity; } }
private void PausedHandler(PausedEventArgs e) { if (GameState.IsPaused) { img.sprite = playSprite; img.rectTransform.Rotate(0, 0, -90); } else { img.sprite = pauseSprite; img.rectTransform.Rotate(0, 0, 90); } }
protected virtual void OnPaused(PausedEventArgs args) { if (Paused != null) { try { Paused(this, args); } catch (Exception e) { LogService.Log(LogType, LogMessageType.Error, GetType().Name, e.GetType().Name + " while raising Paused event. (" + Name + "): " + e.Message, e); } } }
private void OnPausedHandler(PausedEventArgs e) { // Toggle the visibility of the Pause GUI. transform.FindChild("Pause").gameObject.SetActive(e.IsPaused); }
private void HandleSubmachinePausableNodeEntered(object sender, PausedEventArgs args) { OnPausableNodeEntered(args.PausedActivityNumber); }
public abstract void PausedHandler(PausedEventArgs e);
private void HandlePausableNodeEntered(object sender, PausedEventArgs args) { OnSubmachinePausableNodeEntered(args); }