From 7441ef48927f5f28012f0fc0c4e9ac413455251f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Fri, 12 May 2006 23:56:48 +0000 Subject: [PATCH] Property values sometimes were not updated in Local Variables Pad git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1407 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61 --- .../Debugger.Core/Project/Src/Variables/PropertyVariable.cs | 4 ++-- .../Debugger.Core/Project/Src/Variables/VariableCollection.cs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PropertyVariable.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PropertyVariable.cs index 732d714914..c79a78d69e 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PropertyVariable.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/PropertyVariable.cs @@ -36,7 +36,7 @@ namespace Debugger } } - public bool IsEvaluated { + bool IsEvaluated { get { if (Eval != null) { return Eval.Evaluated; @@ -46,7 +46,7 @@ namespace Debugger } } - public Eval Eval { + Eval Eval { get { if (cachedEval == null || cachedEval.HasExpired) { cachedEval = evalCreator(); diff --git a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/VariableCollection.cs b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/VariableCollection.cs index bdd917577c..6afe4b0eeb 100644 --- a/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/VariableCollection.cs +++ b/src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Variables/VariableCollection.cs @@ -154,6 +154,9 @@ namespace Debugger ((ClassVariable)oldVariable).isPublic = ((ClassVariable)oldVariable).isPublic; ((ClassVariable)oldVariable).isStatic = ((ClassVariable)oldVariable).isStatic; } + if (newVariable is PropertyVariable) { + newVariable.ValueChanged += delegate { oldVariable.OnValueChanged(); }; + } } // Keep the variable in the list toBeRemoved.Remove(this[newVariable.Name]);