diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-13 02:14:37 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2019-12-13 02:14:37 +0200 |
| commit | cc2b95c9144d8a3486314766b645021a9a914d25 (patch) | |
| tree | 41653955cb214cb45b655c89efc8d51cb46b0433 /Software/Visual_Studio/Tango.SharedUI | |
| parent | fea4547613d57f8fcc8cb94671c54d82a5b11dbb (diff) | |
| download | Tango-cc2b95c9144d8a3486314766b645021a9a914d25.tar.gz Tango-cc2b95c9144d8a3486314766b645021a9a914d25.zip | |
Implemented power up screen.
Implemented power on emulator.
Implemented power via machine operator.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs b/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs index 3154be545..f740eab84 100644 --- a/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs +++ b/Software/Visual_Studio/Tango.SharedUI/DialogViewVM.cs @@ -37,6 +37,17 @@ namespace Tango.SharedUI set { _canClose = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); } } + private bool _isVisible; + /// <summary> + /// Gets or sets a value indicating whether this instance is visible. + /// </summary> + public bool IsVisible + { + get { return _isVisible; } + set { _isVisible = value; RaisePropertyChangedAuto(); } + } + + /// <summary> /// Determines whether this instance can invoke the OK command. /// </summary> @@ -65,7 +76,7 @@ namespace Tango.SharedUI /// </summary> public virtual void OnShow() { - + IsVisible = true; } /// <summary> @@ -73,6 +84,7 @@ namespace Tango.SharedUI /// </summary> protected virtual void Accept() { + IsVisible = false; DialogResult = true; Accepted?.Invoke(); } @@ -82,6 +94,7 @@ namespace Tango.SharedUI /// </summary> protected virtual void Cancel() { + IsVisible = false; Canceled?.Invoke(); } } |
