Exemple #1
0
 static App()
 {
     try
     {
         EmbeddedAssembly.LoadAssembly("Toxofone.AForge.dll", "AForge.dll");
         EmbeddedAssembly.LoadAssembly("Toxofone.AForge.Video.dll", "AForge.Video.dll");
         EmbeddedAssembly.LoadAssembly("Toxofone.AForge.Video.DirectShow.dll", "AForge.Video.DirectShow.dll");
         EmbeddedAssembly.LoadAssembly("Toxofone.NAudio.dll", "NAudio.dll");
         EmbeddedAssembly.LoadAssembly("Toxofone.SharpTox.dll", "SharpTox.dll");
         EmbeddedAssembly.LoadAssembly("Toxofone.Svg.dll", "Svg.dll");
         EmbeddedAssembly.LoadDll("Toxofone.libtox.dll", "libtox.dll");
         EmbeddedAssembly.LoadDll("Toxofone.tfutils.dll", "tfutils.dll");
         AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(App.OnCurrentDomainAssemblyResolve);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Toxofone startup");
         Environment.Exit(-1);
     }
 }