mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
09d8a8a2d1
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.
48 lines
1.3 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|