Esempio n. 1
0
        /// <summary>
        /// Ininiciates the Real UI (Main)
        /// </summary>
        public void InitiateRealUI()
        {
            Dispatcher.BeginInvoke(new delegateInitiateRealUI(() =>
            {
                // Saves the loadingView reference.
                _loadingView = App.RootVisual as View.LoginView;

                // Show the app UI
                App.RootVisual = new MainWindow();
                WeakEventManager <Window, RoutedEventArgs> .AddHandler(App.RootVisual, "Loaded", RootVisual_Loaded);
                App.RootVisual.Show();
            }));
        }
Esempio n. 2
0
        /// <summary>
        /// Ininiciates the Real UI (Main)
        /// </summary>
        public void InitiateRealUI()
        {
            Dispatcher.BeginInvoke(new delegateInitiateRealUI(() =>
            {
                
                // Saves the loadingView reference.
                _loadingView = App.RootVisual as View.LoginView;

                // Show the app UI
                App.RootVisual = new MainWindow();
                WeakEventManager<Window, RoutedEventArgs>.AddHandler(App.RootVisual, "Loaded", RootVisual_Loaded);
                App.RootVisual.Show();
            }));
        }