Exemple #1
0
        private void PlayDrawing()
        {
            if (Drawing != null)
            {
                DrawingPlayer = new DrawingPlayer(Drawing, dzPlayer);

                DrawingPlayer.DrawingEnded += () =>
                {
                    IsPlaying = false;
                    DrawingPlayer = null;
                };

                DrawingPlayer.Play();
            }
            else
            {
                IsPlaying = false;
            }
        }
Exemple #2
0
        private void PlayDrawing()
        {
            if (Drawing != null)
            {
                DrawingPlayer = new DrawingPlayer(Drawing, dzPlayer);

                DrawingPlayer.DrawingEnded += () =>
                {
                    IsPlaying = false;
                    DrawingPlayer = null;
                };

                DrawingPlayer.Play();
            }
            else
            {
                IsPlaying = false;
            }
        }