mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
7c8cf95fec
Added new indicator control that is purely drawn, rather than using a progress bar (Mono issues) Removed old controls based on the winforms progress bar Started adding some hacks to work around Mono binding bugs git-svn-id: https://arducopter.googlecode.com/svn/trunk@1558 f9c3cf11-9bcb-44bc-f272-b75c42450872
33 lines
851 B
C#
33 lines
851 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Forms;
|
|
using ArducopterConfigurator.PresentationModels;
|
|
|
|
namespace ArducopterConfigurator
|
|
{
|
|
static class Program
|
|
{
|
|
public static bool IsMonoRuntime;
|
|
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
var t = Type.GetType("Mono.Runtime");
|
|
IsMonoRuntime = (t != null);
|
|
|
|
var session = new CommsSession();
|
|
//var session = new FakeCommsSession();
|
|
|
|
var mainVm = new MainVm(session);
|
|
|
|
Application.Run(new mainForm(mainVm));
|
|
}
|
|
}
|
|
}
|