Esempio n. 1
0
 public void Play()
 {
     timer.Stop();
     EffectManager.CheckFrameLength();
     EffectManager.Play(PlayType);
     timer.Start();
 }
Esempio n. 2
0
        private void Play()
        {
            string tooltiptext = "";

            EffectManager.PlayType playType = Effect2D.EffectManager.PlayType.Once;
            if (playToolStripMenuItem.Checked)
            {
                playType    = EffectManager.PlayType.Once;
                tooltiptext = playToolStripMenuItem.Text;
            }
            else if (reversePlayToolStripMenuItem.Checked)
            {
                playType    = EffectManager.PlayType.ReverseOnce;
                tooltiptext = reversePlayToolStripMenuItem.Text;
            }
            else if (loopPlayToolStripMenuItem.Checked)
            {
                playType    = EffectManager.PlayType.Loop;
                tooltiptext = loopPlayToolStripMenuItem.Text;
            }
            else if (reverseLoopPlayToolStripMenuItem.Checked)
            {
                playType    = EffectManager.PlayType.ReverseLoop;
                tooltiptext = reversePlayToolStripMenuItem.Text;
            }
            toolStripSplitButton1.Image = Properties.Resources.pause;


            timer.Stop();
            effectManager.CheckFrameLength();
            effectManager.Play(playType);
            timer.Start();
        }