mirror of
https://github.com/StudentBlake/XCI-Explorer
synced 2025-02-16 12:48:24 +00:00
23 lines
1,016 B
C#
23 lines
1,016 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace XCI_Explorer {
|
|
internal static class Program {
|
|
[STAThread]
|
|
private static void Main() {
|
|
AppDomain.CurrentDomain.AssemblyResolve += (Object sender, ResolveEventArgs args) => {
|
|
System.Reflection.AssemblyName embeddedAssembly = new System.Reflection.AssemblyName(args.Name);
|
|
String resourceName = "XCI_Explorer" + "." + embeddedAssembly.Name + ".dll";
|
|
|
|
using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName)) {
|
|
Byte[] assemblyData = new Byte[stream.Length];
|
|
stream.Read(assemblyData, 0, assemblyData.Length);
|
|
return System.Reflection.Assembly.Load(assemblyData);
|
|
}
|
|
};
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
Application.Run(new MainForm());
|
|
}
|
|
}
|
|
}
|