Ejemplo n.º 1
0
 private void StartAnimation()
 {
     if (GetTabState() == 0)
     {
         MaoriObj m = GetSelectedMaoriObj(MaoriObjType.Vowel);
         if (m != null)
         {
             animationCurrentPlay = m;
             animationCurrentFrame = 0;
             animationTotalFrames = m.AnimationImages.Images.Count;
             animationTimer.Start();
         }
     }
 }
Ejemplo n.º 2
0
        private string GetNextUserRecordingName(MaoriObj word)
        {
            string result;

            FileMapper fileMapper = new FileMapper(0, word.WordSoundId);
            int index = recordedWavFiles.Count + 1;
            result = systemIO.GetAppDataDir(allUsers.getCurrentUser())
                + fileMapper.GetWordSoundName(index);
            return result;
        }
Ejemplo n.º 3
0
 private void ResetAnimator()
 {
     animationTotalFrames = 0;
     animationCurrentFrame = 0;
     animationCurrentPlay = null;
     animationTimer.Stop();
 }
Ejemplo n.º 4
0
 private bool CanPlayAnimation(MaoriObj currentMaoriObj)
 {
     if (currentMaoriObj != null)
         return (currentMaoriObj.AnimationImages != null);
     else
         return false;
 }