mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 22:48:29 -04:00
b04d76049c
add experimental antenna tracker find add new apparam eeprom reader add ground alt display to hud mod stats modify guided mode alt selection. test flight planner tab on flight data tab move some functions to the right click menu add xplanes data in/out setup to be automatic. add better mission upload handeling.
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
|
|
namespace System.Windows.Forms
|
|
{
|
|
/// <summary>
|
|
/// This is a mono fix, windows handles this error, mono crashs
|
|
/// </summary>
|
|
public class MyUserControl : System.Windows.Forms.UserControl
|
|
{
|
|
/// <summary>
|
|
/// implement an on closing event to tidy up enviroment.
|
|
/// Using preedefined refrence as can easerly change between form and user control this way.
|
|
/// </summary>
|
|
public event FormClosingEventHandler FormClosing;
|
|
|
|
public void Close(object sender, FormClosingEventArgs e)
|
|
{
|
|
if (FormClosing != null)
|
|
FormClosing(sender,e);
|
|
}
|
|
|
|
public void Close()
|
|
{
|
|
Close(this, new FormClosingEventArgs(CloseReason.UserClosing, false));
|
|
}
|
|
|
|
protected override void WndProc(ref Message m)
|
|
{
|
|
try
|
|
{
|
|
base.WndProc(ref m);
|
|
}
|
|
catch { }
|
|
}
|
|
}
|
|
}
|