public void ShowWindow(string name)
        {
            // stop the timer if running
            _timer.Stop();

            // set new text
            text.Text = name;

            // show window
            Show();

            // start animation
            _animation.AnimateTo(1.0);
        }
Exemple #2
0
        private void FadeIn()
        {
            Show();

            // start auto hide timer if opacity is 100% and no mouse is over
            if (Opacity == 1.0 && !_mouseIsOver)
            {
                _timer.Start();
            }

            // if opacity is already 100%, there is no need for an animation
            if (Opacity == 1.0)
            {
                return;
            }

            // start new fade in animation from current opacity to 100%
            _animation.AnimateTo(1.0);
        }