c# - WPF SplashControl - > Login Page - > Main Window -


i try build logic start application. splash control need load data, user can login, while data loaded.

        private void splashcontrol_onloaded(object sender, routedeventargs e)     {         stauslabel.content = "loading data...";         showlogincontinueloading();     }      private void showlogincontinueloading()     {         var loginwindow = new loginwindow();         var task = new task(() =>         {             managers.loadusers();         });         task.continuewith(async innertask =>         {             dispatcher.invoke(loginwindow.show);             try             {                 managers.loaddata();             }             catch (exception exception)             {                 throw exception;             }             dispatcher.invoke(() => stauslabel.content = "loading complite");         });          task.start(); 

how slashcontrol can know login successful or not?


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -