You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
892 B
34 lines
892 B
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; |
|
|
|
namespace ArducopterConfigurator.Views |
|
{ |
|
public partial class GpsStatusView : GpsViewDesignable |
|
{ |
|
public GpsStatusView() |
|
{ |
|
InitializeComponent(); |
|
|
|
} |
|
|
|
public override void SetDataContext(GpsStatusVm vm) |
|
{ |
|
BindButtons(vm); |
|
|
|
GpsStatusBindingSource.DataSource = vm; |
|
|
|
if (Program.IsMonoRuntime) |
|
vm.PropertyChanged += ((sender, e) => GpsStatusBindingSource.ResetBindings(false)); |
|
} |
|
|
|
} |
|
|
|
// Required for VS2008 designer. No functional value |
|
public class GpsViewDesignable : ViewCommon<GpsStatusVm> { } |
|
}
|
|
|