void ModPlayer_PlayStateChangedHandle(ModPlayer.PlayerState state) { if (PlayerStateChangeEvent != null) { PlayerStateChangeEvent(state); } }
void m_Player_PlayerStateChangeEvent(ModPlayer.PlayerState state) { if (state == ModPlayer.PlayerState.kStopped) { if (m_IsPlaying) { Next(); } } }
private void PlayerChange(ModPlayer.PlayerState state) { if (this.mikMod == null) { return; } this.Progress = Math.Round(this.mikMod.GetProgress() * 100, 2); // Loop function if (this.Loop && !this.IsPlaying && this.Progress == 0) { this.Stop(); this.Play(); } //# ### # }
void m_Player_PlayerStateChangeEvent(ModPlayer.PlayerState state) { if (state == ModPlayer.PlayerState.kStopped) { Next(); } else { int place = (int)(100.0f * m_Player.GetProgress()); MethodInvoker action = delegate { trackBar1.Value = place; }; trackBar1.BeginInvoke(action); } }