public void Refresh()
{
SuppressSettingProperty = true;
if (this.HasEnoughInformationToWork())
{
Type type = this.GetPropertyType();
mInstancePropertyType = type;
}
object valueOnInstance;
bool successfulGet = this.TryGetValueOnInstance(out valueOnInstance);
if (successfulGet)
{
bool wasSet = false;
if (valueOnInstance != null)
{
wasSet = TrySetValueOnUi(valueOnInstance) == ApplyValueResult.Success;
}
}
this.Label.Content = InstanceMember.DisplayName;
SuppressSettingProperty = false;
}