aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-02-25 11:02:07 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-02-25 11:02:07 +0200
commitb462fdd744f491b04137fd99863f6cb6c623cfa0 (patch)
tree2f69f8e953450a0452442c24f3809aec84ce7db0 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI
parenta8ddb23154fe5111c9509fa0a83dcc36adcba4ee (diff)
parent44a35db8a2929fb3f6aa56ed08185e066292f106 (diff)
downloadTango-b462fdd744f491b04137fd99863f6cb6c623cfa0.tar.gz
Tango-b462fdd744f491b04137fd99863f6cb6c623cfa0.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config2
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs2
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/FirmwareUpgradeViewVM.cs32
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/FirmwareUpgradeView.xaml3
4 files changed, 32 insertions, 7 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config
index 662ab4bf6..36619a25b 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config
@@ -74,7 +74,7 @@
</dependentAssembly>-->
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
- <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
+ <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.IdentityModel.Clients.ActiveDirectory" publicKeyToken="31bf3856ad364e35" culture="neutral" />
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs
index f6386cfc9..f313e9073 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Properties/AssemblyInfo.cs
@@ -4,5 +4,5 @@ using System.Runtime.InteropServices;
[assembly: System.Windows.ThemeInfo(System.Windows.ResourceDictionaryLocation.None, System.Windows.ResourceDictionaryLocation.SourceAssembly)]
[assembly: AssemblyTitle("Tango - Machine Studio")]
-[assembly: AssemblyVersion("4.0.8.0")]
+[assembly: AssemblyVersion("4.0.9.0")]
[assembly: ComVisible(false)] \ No newline at end of file
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/FirmwareUpgradeViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/FirmwareUpgradeViewVM.cs
index e54c28e17..e45c29f73 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/FirmwareUpgradeViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/FirmwareUpgradeViewVM.cs
@@ -61,6 +61,7 @@ namespace Tango.MachineStudio.UI.ViewModels
if (_dfu)
{
UploadTFP = false;
+ DFUAndTFP = false;
}
}
}
@@ -76,10 +77,29 @@ namespace Tango.MachineStudio.UI.ViewModels
if (_uploadTFP)
{
DFU = false;
+ DFUAndTFP = false;
}
}
}
+ private bool _dfuAndTFP;
+
+ public bool DFUAndTFP
+ {
+ get { return _dfuAndTFP; }
+ set
+ {
+ _dfuAndTFP = value; RaisePropertyChangedAuto();
+
+ if (_dfuAndTFP)
+ {
+ DFU = false;
+ UploadTFP = false;
+ }
+ }
+ }
+
+
public RelayCommand SelectCommand { get; set; }
public RelayCommand UpgradeCommand { get; set; }
@@ -131,13 +151,17 @@ namespace Tango.MachineStudio.UI.ViewModels
{
IsFree = false;
- if (UploadTFP)
+ if (DFU)
{
- _operator.FirmwareUpgradeMode = FirmwareUpgradeModes.DFU | FirmwareUpgradeModes.TFP_PACKAGE;
+ _operator.FirmwareUpgradeMode = FirmwareUpgradeModes.DFU;
}
- else
+ else if (UploadTFP)
{
- _operator.FirmwareUpgradeMode = FirmwareUpgradeModes.DFU;
+ _operator.FirmwareUpgradeMode = FirmwareUpgradeModes.TFP_PACKAGE;
+ }
+ else if (DFUAndTFP)
+ {
+ _operator.FirmwareUpgradeMode = FirmwareUpgradeModes.DFU | FirmwareUpgradeModes.TFP_PACKAGE;
}
_stream = new FileStream(SelectedFile, FileMode.Open);
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/FirmwareUpgradeView.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/FirmwareUpgradeView.xaml
index 9acd0386a..976c3866a 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/FirmwareUpgradeView.xaml
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Views/FirmwareUpgradeView.xaml
@@ -66,7 +66,8 @@
<StackPanel Orientation="Horizontal" Margin="0 5 0 0">
<RadioButton IsChecked="{Binding DFU,Mode=TwoWay}">DFU</RadioButton>
- <RadioButton IsChecked="{Binding UploadTFP,Mode=TwoWay}" Margin="20 0 0 0">DFU &amp; Package</RadioButton>
+ <RadioButton IsChecked="{Binding UploadTFP,Mode=TwoWay}" Margin="25 0 0 0">TFP Package</RadioButton>
+ <RadioButton IsChecked="{Binding DFUAndTFP,Mode=TwoWay}" Margin="10 0 0 0">DFU &amp; Package</RadioButton>
</StackPanel>
</StackPanel>
</StackPanel>