2010-12-18 18:23:09 -04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using ArducopterConfigurator.PresentationModels;
|
|
|
|
|
|
|
|
|
|
namespace ArducopterConfigurator
|
|
|
|
|
{
|
|
|
|
|
static class Program
|
|
|
|
|
{
|
2011-01-25 17:47:18 -04:00
|
|
|
|
public static bool IsMonoRuntime;
|
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The main entry point for the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main()
|
|
|
|
|
{
|
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
|
|
2011-01-25 17:47:18 -04:00
|
|
|
|
var t = Type.GetType("Mono.Runtime");
|
|
|
|
|
IsMonoRuntime = (t != null);
|
|
|
|
|
|
|
|
|
|
var session = new CommsSession();
|
|
|
|
|
//var session = new FakeCommsSession();
|
2010-12-23 11:59:00 -04:00
|
|
|
|
|
2011-01-26 17:17:44 -04:00
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
|
var mainVm = new MainVm(session);
|
2010-12-23 11:59:00 -04:00
|
|
|
|
|
2011-01-26 17:17:44 -04:00
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
|
Application.Run(new mainForm(mainVm));
|
|
|
|
|
}
|
2011-01-26 17:17:44 -04:00
|
|
|
|
|
|
|
|
|
|
2010-12-18 18:23:09 -04:00
|
|
|
|
}
|
|
|
|
|
}
|