ardupilot/Tools/ArdupilotMegaPlanner/Controls/ModifyandSet.cs
Michael Oborne 09d8a8a2d1 Mission Planner 1.2.13
remove some mavlink 0.9 code
add arm/disarm button. Not yet implemented AC and AP Side.
modify heli setup screen
modify failsafe screen
fix old firmware under mono
workaround mono crash.
modify planner wp storage
tweak log dl screen
add change alt button
modify tlog wp extractor, multiple extractions
speed up srtm reading
fix lang edit.
2012-10-01 07:53:54 +08:00

48 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ArdupilotMega.Controls
{
public partial class ModifyandSet : UserControl
{
[System.ComponentModel.Browsable(true)]
public NumericUpDown NumericUpDown { get; set; }
[System.ComponentModel.Browsable(true)]
public MyButton Button { get; set; }
[System.ComponentModel.Browsable(true)]
public String ButtonText { get { return Button.Text; } set { Button.Text = value; } }
[System.ComponentModel.Browsable(true)]
public Decimal Value { get { return NumericUpDown.Value; } set { NumericUpDown.Value = value; } }
public new event EventHandler Click;
public event EventHandler ValueChanged;
public ModifyandSet()
{
InitializeComponent();
NumericUpDown = numericUpDown1;
Button = myButton1;
}
private void myButton1_Click(object sender, EventArgs e)
{
if (Click != null)
Click(sender, e);
}
private void numericUpDown1_ValueChanged(object sender, EventArgs e)
{
if (ValueChanged != null)
ValueChanged(sender, e);
}
}
}