Esempio n. 1
0
        static void Main()
        {
            EmbeddedAssembly.Load("AlbaGraphEngineering.Resources.AlbaLibrary.dll", "AlbaLibrary.dll");
            EmbeddedAssembly.Load("AlbaGraphEngineering.Resources.ZedGraph.dll", "ZedGraph.dll");
            EmbeddedAssembly.Load("AlbaGraphEngineering.Resources.ClosedXML.dll", "ClosedXML.dll");
            //EmbeddedAssembly.Load("AlbaGraphEngineering.DocumentFormat.OpenXml.dll", "DocumentFormat.OpenXml.dll");
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new GraphForm());
        }
Esempio n. 2
0
 static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }