Arrow.Controls.DataUi.ColorDisplay.Refresh C# (CSharp) 메소드

Refresh() 공개 메소드

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