aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2020-11-19 17:48:19 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2020-11-19 17:48:19 +0200
commit10b86a94011c449f6630f29513cbc4176e650643 (patch)
tree3cfb3f038529de432fbe8491a2c6187ed25e3fce /Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
parentd8def54c0fcd0ce00891e2a9f5b956fd5c758f06 (diff)
downloadTango-10b86a94011c449f6630f29513cbc4176e650643.tar.gz
Tango-10b86a94011c449f6630f29513cbc4176e650643.zip
Revert changes to view model base causing hangs.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/ViewModel.cs')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/ViewModel.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs b/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
index 564d8fce0..421e098ce 100644
--- a/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/ViewModel.cs
@@ -41,7 +41,7 @@ namespace Tango.SharedUI
public bool IsBusy
{
get { return _isBusy; }
- set { _isBusy = value; RaisePropertyChanged(nameof(IsBusy), true); RaisePropertyChanged(nameof(IsFree), true); InvalidateRelayCommands(); }
+ set { _isBusy = value; RaisePropertyChangedAuto(); RaisePropertyChanged(nameof(IsFree)); InvalidateRelayCommands(); }
}
/// <summary>
@@ -172,18 +172,6 @@ namespace Tango.SharedUI
{
TangoMessenger.Default.Register<T>(handler);
}
-
- /// <summary>
- /// Raises the property changed event.
- /// </summary>
- /// <param name="propName">Name of the property.</param>
- protected virtual void RaisePropertyChanged(String propName, bool onUIThread)
- {
- InvokeUI(() =>
- {
- RaisePropertyChanged(propName);
- });
- }
}
/// <summary>