Exemple #1
0
        private void OnDraw()
        {
            if (IsFinished() != 0)
            {
                Play.Text      = "Play";
                timer1.Enabled = false;
                return;
            }

            int playState = GetPlayState();

            if (playState == 0)
            {
                m_RecordPlayer.FrameMoveRePlay();
                int nTime = 0;
                m_RecordPlayer.GetNowTime(out nTime);
                if (m_Slider.GetPos() != nTime)
                {
                    m_Slider.SetPos(nTime);
                    m_Slider.Invalidate();
                    m_Slider.Update();
                }
            }
        }