Advertisement
Guest User

Untitled

a guest
Aug 27th, 2014
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. Startup="Application_Startup"
  2.  
  3. private void Application_Startup(object sender, StartupEventArgs e)
  4. {
  5. SplashScreen.Show<SplashScreen>();
  6. AppDomain.CurrentDomain.AssemblyLoad += CurrentDomain_AssemblyLoad;
  7. }
  8.  
  9. void CurrentDomain_AssemblyLoad(object sender, AssemblyLoadEventArgs args)
  10. {
  11. SplashScreen.CallSplashScreenMethod<SplashScreen>(x => x.Text(args.LoadedAssembly.GetName().Name));
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement