aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2019-02-17 17:25:52 +0200
committerAvi Levkovich <avi@twine-s.com>2019-02-17 17:25:52 +0200
commit638ef66200cc71378f00e2705dc6b259c461ae78 (patch)
treef8143befd029c56599f4f892427713960e99c50b /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels
parente89e1d93b6c8198828a6bda95db0bbd6cbae3955 (diff)
parent21cdc1e12814f72e6aac795f9ddd2a32b9614389 (diff)
downloadTango-638ef66200cc71378f00e2705dc6b259c461ae78.tar.gz
Tango-638ef66200cc71378f00e2705dc6b259c461ae78.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels/MainViewVM.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels/MainViewVM.cs
index 3df46ba6f..90644cf1a 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Storage/ViewModels/MainViewVM.cs
@@ -8,6 +8,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.Commands;
+using Tango.Core.DI;
using Tango.Core.IO;
using Tango.Integration.ExternalBridge;
using Tango.Integration.Storage;
@@ -79,6 +80,14 @@ namespace Tango.MachineStudio.Storage.ViewModels
public RelayCommand ActivateVersionCommand { get; set; }
+ public RelayCommand GenerateTfpCommand { get; set; }
+
+ public MainViewVM()
+ {
+
+ }
+
+ [TangoInject]
public MainViewVM(IStudioApplicationManager applicationManager, INotificationProvider notificationProvider, IFirmwareUpgrader firmwareUpgrader)
{
_applicationManager = applicationManager;
@@ -102,6 +111,7 @@ namespace Tango.MachineStudio.Storage.ViewModels
UploadVersionCommand = new RelayCommand(UploadVersion, () => StorageManager != null && StorageManager.CurrentFolder != null);
ValidateVersionCommand = new RelayCommand(ValidateVersion, () => StorageManager != null && StorageManager.CurrentFolder != null);
ActivateVersionCommand = new RelayCommand(ActivateVersion, () => StorageManager != null && StorageManager.CurrentFolder != null);
+ GenerateTfpCommand = new RelayCommand(GenerateTFP);
}
private void UploadFile()
@@ -398,5 +408,13 @@ namespace Tango.MachineStudio.Storage.ViewModels
}
}
}
+
+ private void GenerateTFP()
+ {
+ Tango.FirmwarePackageGenerator.MainWindow fWindow = new FirmwarePackageGenerator.MainWindow();
+ fWindow.Topmost = true;
+ fWindow.Show();
+ _applicationManager.RegisterOpenedWindow(fWindow);
+ }
}
}