mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-05 15:38:29 -04:00
8bebf0c394
Convert to IActivate, IDeactivate scheme, thanks andrew add support for rfcomm* interfaces on linux fix guage off screen draw mono issue. remove use of BackStageViewContentPanel andrews spacer changes - not using dues to screen space issue change configpanel constructor to load xml directly remove IMavlink Interface fix hsi off screen draw issue on mono modify hud to use sprite fonts, instead of drawing via GDI+ modify progress reporter to use a 10hz timer to update screen, using invoke/begininvoke fails on mono at 50hz (over 100ms per call). fix targetalt and target airspeed jumping issue. lots of cleanup on tab switching, ie stoping timers/other 3dr radio status led update update ardurover car icon speedup georef image screen. tested on over 1000 images.
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 betwen 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 { }
|
|
}
|
|
}
|
|
}
|