mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
557b5c7615
Added new indicator control that is purely drawn, rather than using a progress bar (Mono issues) Removed old controls based on the winforms progress bar Started adding some hacks to work around Mono binding bugs git-svn-id: https://arducopter.googlecode.com/svn/trunk@1558 f9c3cf11-9bcb-44bc-f272-b75c42450872
31 lines
912 B
C#
31 lines
912 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Data;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using ArducopterConfigurator.PresentationModels;
|
|
using ArducopterConfigurator.Views;
|
|
|
|
namespace ArducopterConfigurator.views
|
|
{
|
|
public partial class FlightDataView : FlightDataViewDesignable
|
|
{
|
|
public FlightDataView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public override void SetDataContext(FlightDataVm model)
|
|
{
|
|
FlightDataVmBindingSource.DataSource = model;
|
|
|
|
if (Program.IsMonoRuntime)
|
|
model.PropertyChanged += ((sender, e) => FlightDataVmBindingSource.ResetBindings(false));
|
|
}
|
|
}
|
|
// Required for VS2008 designer. No functional value
|
|
public class FlightDataViewDesignable : ViewCommon<FlightDataVm> { }
|
|
}
|