private void CopyEventsSubscriptionsHandler(out List <TimeChangedDelegate> durationChangedSubscriptions, out List <TimeChangedDelegate> currentTimeChangedSubscriptions, out List <TimeDelegate> timeFlowStartedSubscriptions, out List <TimeDelegate> timeFlowStoppedSubscriptions, out List <TimeDelegate> timeFlowPausedSubscriptions) { durationChangedSubscriptions = new List <TimeChangedDelegate>(); currentTimeChangedSubscriptions = new List <TimeChangedDelegate>(); timeFlowStartedSubscriptions = new List <TimeDelegate>(); timeFlowStoppedSubscriptions = new List <TimeDelegate>(); timeFlowPausedSubscriptions = new List <TimeDelegate>(); if (DurationChanged != null) { durationChangedSubscriptions = Array.ConvertAll(DurationChanged.GetInvocationList(), item => (TimeChangedDelegate)item).ToList(); } if (CurrentTimeChanged != null) { currentTimeChangedSubscriptions = Array.ConvertAll(CurrentTimeChanged.GetInvocationList(), item => (TimeChangedDelegate)item).ToList(); } if (TimeFlowStarted != null) { timeFlowStartedSubscriptions = Array.ConvertAll(TimeFlowStarted.GetInvocationList(), item => (TimeDelegate)item).ToList(); } if (TimeFlowStopped != null) { timeFlowStoppedSubscriptions = Array.ConvertAll(TimeFlowStopped.GetInvocationList(), item => (TimeDelegate)item).ToList(); } if (TimeFlowPaused != null) { timeFlowPausedSubscriptions = Array.ConvertAll(TimeFlowPaused.GetInvocationList(), item => (TimeDelegate)item).ToList(); } }
void LoadAnimationDuration() { EvaluateJavaScript($"getAnimationDuration();", (result, error) => { var durationString = result.ToString(); Duration = Convert.ToDouble(durationString); DurationChanged?.Invoke(this, null); }); }
public void ClearCallback() { if (StartDelayChanged != null) { foreach (Delegate d in StartDelayChanged.GetInvocationList()) { StartDelayChanged -= (EventHandler)d; } } if (DurationChanged != null) { foreach (Delegate d in DurationChanged.GetInvocationList()) { DurationChanged -= (EventHandler)d; } } if (PositionRequest != null) { foreach (Delegate d in PositionRequest.GetInvocationList()) { PositionRequest -= (EventHandler)d; } } if (StartCallback != null) { foreach (Delegate d in StartCallback.GetInvocationList()) { StartCallback -= (EventHandler)d; } } if (StopCallback != null) { foreach (Delegate d in StopCallback.GetInvocationList()) { StopCallback -= (EventHandler)d; } } if (NextCallback != null) { foreach (Delegate d in NextCallback.GetInvocationList()) { NextCallback -= (EventHandler)d; } } if (PrevCallback != null) { foreach (Delegate d in PrevCallback.GetInvocationList()) { PrevCallback -= (EventHandler)d; } } }
void SceneDurationChange(object sender, RangeBaseValueChangedEventArgs e) { if (controller == null || currentScene == null || e.OldValue == (int)e.NewValue) { return; } currentScene.FrameDuration = (int)e.NewValue; DurationChanged?.Invoke(currentScene); var frameScale = (items.ActualWidth - borderSize) / currentScene.FrameDuration; foreach (var sequence in controller.Sequences) { sequence.UpdateScale(frameScale); } }
private void OnDurationChanged() { numDuration.Value = _duration; if (_form != null) { _form.Duration = _duration; } if (!_fireEvent) { return; } if (DurationChanged != null) { DurationChanged.Invoke(this, null); } }
protected void OnDurationChanged(TimeSpan duration) { DurationChanged?.Invoke(this, duration); }
public void OnMediaDurationChanged(long newDuration) { DurationChanged?.Invoke(this, new VlcMediaDurationChangedEventArgs(newDuration)); }
private void OnDurationChanged(object sender, SongDurationChangedEventArgs e) { DurationChanged?.Invoke(this, new SubscriptionsEventArgs <Song, SongDurationChangedEventArgs>(sender, e)); SomethingChanged?.Invoke(this, new SubscriptionsEventArgs <Song, EventArgs>(sender, e)); }
private void DurationControlNumericUpDownDays_ValueChanged(object sender, EventArgs e) { DaysChanged?.Invoke(this, e); DurationChanged?.Invoke(this, e); }