private void RaiseTimeChanged(TimeChangedEventArgs e) { var handle = Volatile.Read(ref TimeChanged); if (handle != null) { handle(this, e); } }
private void _player_OnTimeChangedEventHandler(object sender, TimeChangedEventArgs e) { Time = e.Time; if (TimeChanged != null) { TimeChanged(this, e); } }