aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-07-01 12:17:44 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-07-01 12:17:44 +0300
commitb2ecc74067ad29c0bb4d267fb966ceb7cb8cbbdb (patch)
treebb06ad367fdcbaac6b7428d6daedeb03e30e24e4 /Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs
parent125af20c03bcf1904166e9858a3a54ef4fcb1f05 (diff)
downloadTango-b2ecc74067ad29c0bb4d267fb966ceb7cb8cbbdb.tar.gz
Tango-b2ecc74067ad29c0bb4d267fb966ceb7cb8cbbdb.zip
Working on PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs b/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs
index 84452408f..1854b410a 100644
--- a/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs
@@ -38,6 +38,11 @@ namespace Tango.SharedUI
}
/// <summary>
+ /// Gets a value indicating whether the dialog has been confirmed.
+ /// </summary>
+ public bool DialogResult { get; private set; }
+
+ /// <summary>
/// Gets or sets the close command.
/// </summary>
public RelayCommand CloseCommand { get; set; }
@@ -60,6 +65,7 @@ namespace Tango.SharedUI
/// </summary>
protected virtual void Accept()
{
+ DialogResult = true;
Accepted?.Invoke();
}