예제 #1
0
파일: Program.cs 프로젝트: hellzerg/haitoku
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            EmbeddedAssembly.Load(JsonAssembly, JsonAssembly.Replace("Haitoku.", string.Empty));
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            EmbeddedAssembly.Load(HtmlAgilityAssembly, HtmlAgilityAssembly.Replace("Haitoku.", string.Empty));
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);

            Options.LoadSettings();
            MainContext.MainForm = new LoginForm();
            Application.Run(MainContext);
        }
예제 #2
0
파일: Program.cs 프로젝트: hellzerg/haitoku
 private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }