예제 #1
0
        void splash_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            bool isVisibleNew = (bool)e.NewValue;
            bool isVisibleOld = (bool)e.OldValue;

            if (!isVisibleNew && isVisibleOld)
            {
                SplashView splash = sender as SplashView;
                if (splash != null)
                {
                    if (splash.SplashScreenDecision == SplashScreenDecision.TradingPost || splash.SplashScreenDecision == SplashScreenDecision.Gw2Spidy)
                    {
                        StartMain(splash.SplashScreenDecision == SplashScreenDecision.TradingPost);
                        splash.Close();
                    }
                }
            }
        }