mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 15:38:29 -04:00
d59d26b7d2
implement new arducopter pid tuning screen included old for crossover. add map rotation - follow plane modify setup screen to show diffrent things based on ap software
37 lines
867 B
C#
37 lines
867 B
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
|
|
{
|
|
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 { }
|
|
}
|
|
}
|
|
}
|