diff options
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/DialogViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/DialogViewVM.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/DialogViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/DialogViewVM.cs index 5fcd63071..c8d606efc 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/DialogViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/DialogViewVM.cs @@ -24,6 +24,7 @@ namespace Tango.MachineStudio.Common.Notifications { CanClose = true; CloseCommand = new RelayCommand(Cancel, (x) => CanClose); + OKCommand = new RelayCommand(Accept, (x) => CanClose); } private bool _canClose; @@ -42,6 +43,11 @@ namespace Tango.MachineStudio.Common.Notifications public RelayCommand CloseCommand { get; set; } /// <summary> + /// Gets or sets the ok command. + /// </summary> + public RelayCommand OKCommand { get; set; } + + /// <summary> /// Called when the dialog has been shown. /// </summary> public virtual void OnShow() |
