Guest User

Untitled

a guest
Aug 21st, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. (assembly "PresentationFramework")
  2. (load "cts:System.IO")
  3. (load "cts:System.Threading")
  4. (load "cts:System.Windows")
  5. (load "cts:System.Windows.Markup")
  6.  
  7. Thread.(new (\ []
  8. Application.Current
  9. .(let app
  10. FileStream.(new "MainWindow.xaml" FileMode.Open FileAccess.Read)
  11. .(let fs
  12. XamlReader.(Load fs)
  13. .(let window
  14. fs.(Dispose)
  15. (= app.MainWindow window.(to Window))
  16. app.(Run)
  17. )
  18. )
  19. )
  20. ))
  21. .(let t
  22. t.(SetApartmentState ApartmentState.STA)
  23. t.(Start)
  24. t.(Join)
  25. )
Add Comment
Please, Sign In to add comment