Esempio n. 1
0
 void ModPlayer_PlayStateChangedHandle(ModPlayer.PlayerState state)
 {
     if (PlayerStateChangeEvent != null)
     {
         PlayerStateChangeEvent(state);
     }
 }
Esempio n. 2
0
 void m_Player_PlayerStateChangeEvent(ModPlayer.PlayerState state)
 {
     if (state == ModPlayer.PlayerState.kStopped)
     {
         if (m_IsPlaying)
         {
             Next();
         }
     }
 }
Esempio n. 3
0
        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();
            }
            //# ### #
        }
Esempio n. 4
0
        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);
            }
        }