aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Publisher/MainWindowVM.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Publisher/MainWindowVM.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Publisher/MainWindowVM.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Publisher/MainWindowVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.Publisher/MainWindowVM.cs
index b2abd9466..fdaa673ed 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Publisher/MainWindowVM.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Publisher/MainWindowVM.cs
@@ -56,7 +56,7 @@ namespace Tango.PPC.Publisher
public String SelectedBuildConfiguration
{
get { return _selectedBuildConfiguration; }
- set { _selectedBuildConfiguration = value; RaisePropertyChangedAuto(); }
+ set { _selectedBuildConfiguration = value; RaisePropertyChangedAuto(); OnSelectedBuildConfigurationChanged(); }
}
private String _localVersion;
@@ -186,13 +186,19 @@ namespace Tango.PPC.Publisher
SettingsManager.Default.GetOrCreate<CoreSettings>();
SettingsManager.Default.Save();
- LocalVersion = FileVersionInfo.GetVersionInfo(Core.Helpers.AssemblyHelper.GetCurrentAssemblyFolder() + "\\Tango.PPC.UI.exe").ProductVersion;
+ OnSelectedBuildConfigurationChanged();
PublishCommand = new RelayCommand(Publish);
CreateTupCommand = new RelayCommand(PublishTupFile);
FirmwareUpgradePackageBrowseCommand = new RelayCommand(BrowseFirmwareUpgradePackage);
}
+ private void OnSelectedBuildConfigurationChanged()
+ {
+ String _appPath = String.Format(AppDomain.CurrentDomain.BaseDirectory + "..\\{0}", SelectedBuildConfiguration);
+ LocalVersion = FileVersionInfo.GetVersionInfo(_appPath + "\\Tango.PPC.UI.exe").ProductVersion;
+ }
+
private async void OnSelectedMachineVersionChanged()
{
if (SelectedMachineVersion != null)