Arrow.Controls.DataUi.ColorDisplay.Refresh C# (CSharp) Method

Refresh() public method

public Refresh ( ) : void
return void
        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;
        }