Exemple #1
0
        /// <summary>
        /// Create the animation manager and initialize it  Load
        /// all the animations from the config file.
        /// </summary>
        /// <param name="configFileName">name of the animation file</param>
        /// <returns></returns>
        private bool initAnimationManager(String configFileName)
        {
            bool retVal = true;

            _animationManager = new AnimationManager();
            if (_animationManager.Init(configFileName))
            {
                _animationManager.EvtPlayerStateChanged += animationManager_EvtPlayerStateChanged;
            }
            else
            {
                Log.Error("Error initializing animation manager");
                _animationManager = null;
                retVal = false;
            }

            return retVal;
        }
Exemple #2
0
        /// <summary>
        /// Form is closing. Release resources
        /// </summary>
        /// <param name="sender">event sender</param>
        /// <param name="e">event args</param>
        private void MuteForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            _animationManager.Dispose();

            _animationManager = null;

            _widgetManager.Dispose();

            if (_windowOverlapWatchdog != null)
            {
                _windowOverlapWatchdog.Dispose();
            }
        }
Exemple #3
0
        /// <summary>
        /// Loads all animations from the configfile for the form
        /// </summary>
        private bool initAnimationManager()
        {
            _animationManager = new AnimationManager();
            bool retVal = _animationManager.Init(getConfigFile());
            if (!retVal)
            {
                Log.Error("Error initializing animation manager");
            }

            return retVal;
        }
Exemple #4
0
        /// <summary>
        /// Loads all animations
        /// </summary>
        private bool initAnimationManager()
        {
            _animationManager = new AnimationManager();
            var configFile = PanelConfigMap.GetConfigFileForScreen(GetType());

            var retVal = _animationManager.Init(configFile);

            if (!retVal)
            {
                Log.Error("Error initializing animation manager");
                retVal = false;
            }

            return retVal;
        }