static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); EmbeddedAssembly.Load(resource, resource.Replace("Observer.", string.Empty)); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; Options.LoadSettings(); Application.Run(new MainForm()); }
static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) { return(EmbeddedAssembly.Get(args.Name)); }