Ejemplo n.º 1
0
        static void Main()
        {
            GetWebView2LoaderDLL();
            EmbeddedAssembly.Load("ArcadeLauncher.Resources.Microsoft.Web.WebView2.WinForms.dll", "Microsoft.Web.WebView2.WinForms.dll");
            EmbeddedAssembly.Load("ArcadeLauncher.Resources.Guna.UI2.dll", "Guna.UI2.dll");
            EmbeddedAssembly.Load("ArcadeLauncher.Resources.Microsoft.Web.WebView2.Core.dll", "Microsoft.Web.WebView2.Core.dll");
            EmbeddedAssembly.Load("ArcadeLauncher.Resources.Microsoft.Web.WebView2.Wpf.dll", "Microsoft.Web.WebView2.Wpf.dll");
            EmbeddedAssembly.Load("ArcadeLauncher.Resources.Dropbox.Api.dll", "Dropbox.Api.dll");
            EmbeddedAssembly.Load("ArcadeLauncher.Resources.Newtonsoft.Json.dll", "Newtonsoft.Json.dll");

            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainWindow mainWindow = new MainWindow();

            SaveImages();
            Application.Run(mainWindow);
        }
Ejemplo n.º 2
0
 static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }