void StartMode(int startMode, bool newBegin = false)
        {
            switch (startMode)
            {
            case 0:
                break;

            case 1:
                var embedDeasktopView = new EmbedDeasktopView();
                ShowWindow(embedDeasktopView);
                break;

            case 2:
                var mainView = new MainView();
                ShowWindow(mainView);
                break;

            default:
                break;
            }
            if (newBegin)
            {
                ConfigHelper.SaveStartMode(startMode);
            }
        }
        private void StartView_Loaded(object sender, RoutedEventArgs e)
        {
            Start();
            var bw = new BackgroundWorker();

            bw.DoWork += delegate
            {
                Common.Init();
                Thread.Sleep(1000);
            };
            bw.RunWorkerCompleted += delegate
            {
                tbMsg.Text = "开始体验";
                timer.Stop();
                var embedDeasktopView = new EmbedDeasktopView();
                embedDeasktopView.Show();
                var closeAnimation = new DoubleAnimation
                {
                    From           = Width,
                    To             = 0,
                    Duration       = new Duration(TimeSpan.FromSeconds(0.5)),
                    EasingFunction = new BackEase {
                        EasingMode = EasingMode.EaseIn
                    }
                };
                closeAnimation.Completed += delegate
                {
                    Close();
                };
                BeginAnimation(WidthProperty, closeAnimation);
            };
            tbMsg.Text = "即将进入";
            bw.RunWorkerAsync();
        }