示例#1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            this.Show();
            var config = ConfigurationManager.AppSettings["ShowSplash"];

            if (config.ToLower() == "true")
            {
                var screen = new Views.SplashScreen();
                screen.ShowDialog();
            }
        }
示例#2
0
        //---------------------------------------------------------------------
        SplashScreenVM ShowSplashScreen()
        {
            _splashScreen             = new Views.SplashScreen();
            _splashScreen.Owner       = _mainWindow;
            _splashScreenVM           = new SplashScreenVM();
            _splashScreen.DataContext = _splashScreenVM;
            _splashScreen.Show();

            // start the timer to close the splash
            _timer          = new System.Timers.Timer(300);
            _timer.Elapsed += new ElapsedEventHandler(_timer_Elapsed);
            _timer.Enabled  = true;

            return(_splashScreenVM);
        }
示例#3
0
        /// <summary>
        /// Creates the splash screen.
        /// </summary>
        /// <returns>The window.</returns>
        public Window CreateSplashScreen()
        {
            var splashScreen = new Views.SplashScreen();

            return splashScreen;
        }
示例#4
0
        /// <summary>
        /// Creates the splash screen.
        /// </summary>
        /// <returns>The window.</returns>
        public Window CreateSplashScreen()
        {
            var splashScreen = new Views.SplashScreen();

            return(splashScreen);
        }