Esempio n. 1
0
 public void Dispose()
 {
     labels.Clear();
     sounds.Clear();
     for (var i = 0; i < 2; i++)
     {
         customImages[i] = null;
     }
     if (backgroundSound != null)
     {
         backgroundSound.Dispose();
         backgroundSound = null;
     }
     if (backgroundMusic != null)
     {
         backgroundMusic.Dispose();
         backgroundMusic = null;
     }
     if (videosnapVideo != null)
     {
         videosnapVideo.Dispose();
         videosnapVideo = null;
     }
     backgroundImage  = null;
     screenSaverImage = null;
     images.Clear();
 }
Esempio n. 2
0
        public CVideo CreateVideo(string fileName, int width, int height, int posX, int posY, int videoVolume, float speed)
        {
            if (videosnapVideo != null)
            {
                videosnapVideo.Dispose();
            }

            videosnapVideo            = new CVideo(ref graphics, ref feel);
            videosnapVideo.PlayLooped = true;
            videosnapVideo.PlayVideo(feel, fileName, fileName, width, height, posX, posY, videoVolume, speed, () => { });
            return(videosnapVideo);
        }