|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Reflection;
namespace WindowsFormsApplication24
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
EmbeddedAssembly.Load("WindowsFormsApplication24.System.Data.SQLite.dll", "System.Data.SQLite.dll");
EmbeddedAssembly.Load("WindowsFormsApplication24.System.Windows.Forms.Ribbon35.dll", "System.Windows.Forms.Ribbon35.dll");
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
Assembly asm = EmbeddedAssembly.Get(args.Name);
return asm;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.