Пример #1
0
 protected void ExecuteApp <T>(IAppCluster <T> cluster, AppType appType = AppType.WPF)
 {
     if (appType == AppType.WPF)
     {
         SetView(cluster.App);
     }
     else if (appType == AppType.Winform)
     {
         WindowsFormsHost formHost = new WindowsFormsHost();
         formHost.Child          = cluster.App as System.Windows.Forms.Control;
         this.LayoutRoot.Content = formHost;
     }
     else if (appType == AppType.Browser)
     {
         WebBrowser browser = new WebBrowser();
         browser.Navigate(cluster.App.ToString());
         this.LayoutRoot.Content = browser;
     }
 }
Пример #2
0
 private void ShowSplash <T>(IAppCluster <T> cluster)
 {
     AppSplash splash = new AppSplash();
 }