aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2019-09-02 16:46:23 +0300
committerAvi Levkovich <avi@twine-s.com>2019-09-02 16:46:23 +0300
commitcdfa8777b7d433816c2ec5f12b826b53bda917dd (patch)
treecc51fe4ba63301dfc69e07a0d7912a5ca3535e39 /Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs
parent2d32d2c6dba3b8dc90692e8c30d509b3c83bc462 (diff)
parent62905aaa550ea584f29feae2ba35fc6df6c42c8f (diff)
downloadTango-cdfa8777b7d433816c2ec5f12b826b53bda917dd.tar.gz
Tango-cdfa8777b7d433816c2ec5f12b826b53bda917dd.zip
merge conflict
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs
index 6cc8289f4..918eb02d4 100644
--- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.HardwareDesigner/ViewModels/MainViewVM.cs
@@ -13,6 +13,7 @@ using Tango.SharedUI.Components;
using System.Runtime.CompilerServices;
using Tango.MachineStudio.Common;
using Tango.Core.ExtensionMethods;
+using Tango.MachineStudio.HardwareDesigner.Views;
namespace Tango.MachineStudio.HardwareDesigner.ViewModels
{
@@ -86,7 +87,7 @@ namespace Tango.MachineStudio.HardwareDesigner.ViewModels
return name;
}
}
-
+
private ObservableCollection<HardwareVersion> _hardwareVersions;
public ObservableCollection<HardwareVersion> HardwareVersions
{
@@ -104,6 +105,8 @@ namespace Tango.MachineStudio.HardwareDesigner.ViewModels
public RelayCommand CopyParametersCommand { get; set; }
+ public RelayCommand OpenComparisonWizardCommand { get; set; }
+
public MainViewVM(INotificationProvider notification)
{
_notification = notification;
@@ -118,6 +121,8 @@ namespace Tango.MachineStudio.HardwareDesigner.ViewModels
CopyParametersCommand = new RelayCommand(CopyParameters, (x) => SelectedVersion != null && IsFree);
CloneCommand = new RelayCommand(CloneCurrentVersion, () => SelectedVersion != null && IsFree);
+
+ OpenComparisonWizardCommand = new RelayCommand(OpenComparisonWizard);
}
public override void OnApplicationReady()
@@ -428,6 +433,12 @@ namespace Tango.MachineStudio.HardwareDesigner.ViewModels
}
}
+ private void OpenComparisonWizard()
+ {
+ ComparisonWizardViewVM vm = new ComparisonWizardViewVM(HardwareVersions, SelectedVersion, _notification);
+ _notification.ShowModalDialog<ComparisonWizardViewVM, ComparisonWizardView>(vm, (x) => { }, () => { });
+ }
+
protected override void RaisePropertyChangedAuto([CallerMemberName] string caller = null)
{
base.RaisePropertyChangedAuto(caller);