From 0ac0fafe86bd3fa39fc9284ffcf388871f6a3d1b Mon Sep 17 00:00:00 2001 From: mandrolic Date: Sat, 5 Mar 2011 16:41:03 +0000 Subject: [PATCH] Configurator.Net: Fix Magnetometer enable git-svn-id: https://arducopter.googlecode.com/svn/trunk@1745 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- .../ArducopterConfigurator.csproj | 2 +- .../PresentationModels/StableModeConfigVm.cs | 28 +++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/Configurator/Configurator.Net/ArducopterConfigurator.csproj b/Configurator/Configurator.Net/ArducopterConfigurator.csproj index db2be45e89..9c109e5b3d 100644 --- a/Configurator/Configurator.Net/ArducopterConfigurator.csproj +++ b/Configurator/Configurator.Net/ArducopterConfigurator.csproj @@ -33,7 +33,7 @@ true index.htm false - 8 + 9 1.0.0.%2a false true diff --git a/Configurator/Configurator.Net/PresentationModels/StableModeConfigVm.cs b/Configurator/Configurator.Net/PresentationModels/StableModeConfigVm.cs index efead16f2b..69112ed4f1 100644 --- a/Configurator/Configurator.Net/PresentationModels/StableModeConfigVm.cs +++ b/Configurator/Configurator.Net/PresentationModels/StableModeConfigVm.cs @@ -25,9 +25,33 @@ namespace ArducopterConfigurator.PresentationModels }; } - public float KPrate { get; set; } - public bool MagnetometerEnable { get; set; } + private float _kprate; + + public float KPrate + { + get { return _kprate; } + set + { + if (_kprate == value) return; + _kprate = value; + FirePropertyChanged("KPrate"); + } + } + + + private bool _magEnable; + + public bool MagnetometerEnable + { + get { return _magEnable; } + set + { + if (_magEnable == value) return; + _magEnable = value; + FirePropertyChanged("MagnetometerEnable"); + } + } public override string Name {