Exemple #1
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            if (GlobalModule.AppCinfig.IsShowWelcome)
            {
                this.Hide();
                Welcome win = new Welcome();
                win.Show();
                win.Closed += new EventHandler(Welcome_Closed);
            }
            else
            {
                var story = this.FindResource("MainLoeding") as Storyboard;
                story.Begin();
            }
            LogoEffect logoEffect = new LogoEffect()
            {
                SunAngle = 105
            };

            tbLogo.Effect = logoEffect;
            DoubleAnimation doubleAnimation = new DoubleAnimation()
            {
                From = 0, To = 5, AutoReverse = false, RepeatBehavior = RepeatBehavior.Forever, Duration = TimeSpan.FromSeconds(3.5)
            };

            logoEffect.BeginAnimation(LogoEffect.RedThresholdProperty, doubleAnimation);
        }
Exemple #2
0
        private void btntxtread_Click(object sender, RoutedEventArgs e)
        {
            if (IsTxtRead)
            {
                GlobalModule.GlobalControl.MessageBoxDialog("语音阅读已启动", "提示", null);
                return;
            }
            IsTxtRead = true;
            txt       = new TxtReadMain();
            txt.Show();
            txt.Closed += new EventHandler(txt_Closed);
            LogoEffect logoEffect = new LogoEffect()
            {
                SunAngle = 105
            };

            imgReader.Effect = logoEffect;
            DoubleAnimation doubleAnimation = new DoubleAnimation()
            {
                From = 0, To = 5, AutoReverse = false, RepeatBehavior = RepeatBehavior.Forever, Duration = TimeSpan.FromSeconds(3.5)
            };

            logoEffect.BeginAnimation(LogoEffect.RedThresholdProperty, doubleAnimation);
        }
Exemple #3
0
        private void btnsudoku_Click(object sender, RoutedEventArgs e)
        {
            if (IsSudoku)
            {
                GlobalModule.GlobalControl.MessageBoxDialog("数独已启动", "提示", null);
                return;
            }
            IsSudoku = true;
            sudoku   = new SudokuMainWindow();
            sudoku.Show();
            sudoku.Closed += new EventHandler(sudoku_Closed);
            LogoEffect logoEffect = new LogoEffect()
            {
                SunAngle = 105
            };

            imgSudoku.Effect = logoEffect;
            DoubleAnimation doubleAnimation = new DoubleAnimation()
            {
                From = 0, To = 5, AutoReverse = false, RepeatBehavior = RepeatBehavior.Forever, Duration = TimeSpan.FromSeconds(3.5)
            };

            logoEffect.BeginAnimation(LogoEffect.RedThresholdProperty, doubleAnimation);
        }