Added project files, source files, and assets.
As long as you have IronPython 2.7.3 you should be able to compile now with this commit.
This commit is contained in:
parent
a62ee2f168
commit
51e217e38c
79 changed files with 6968 additions and 0 deletions
46
code/src/Program.cs
Normal file
46
code/src/Program.cs
Normal file
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FileWatcher
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
public static Dictionary<string, string> Args = null;
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Args = args.ToDictionary(
|
||||
k => k.Split(new char[] { '=' }, 2)[0].ToLower(),
|
||||
v => v.Split(new char[] { '=' }, 2).Count() > 1 ? v.Split(new char[] { '=' }, 2)[1] : null
|
||||
);
|
||||
|
||||
//AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
|
||||
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(Form1.Instance);
|
||||
}
|
||||
|
||||
/*static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
|
||||
{
|
||||
string dllName = args.Name.Contains(',') ? args.Name.Substring(0, args.Name.IndexOf(',')) : args.Name.Replace(".dll", "");
|
||||
|
||||
dllName = dllName.Replace(".", "_");
|
||||
|
||||
if (dllName.EndsWith("_resources")) return null;
|
||||
|
||||
System.Resources.ResourceManager rm = new System.Resources.ResourceManager("FileWatcher.Properties.Resources", System.Reflection.Assembly.GetExecutingAssembly());
|
||||
|
||||
byte[] bytes = (byte[])rm.GetObject(dllName);
|
||||
|
||||
return System.Reflection.Assembly.Load(bytes);
|
||||
}*/
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue