Ext.Net.ButtonBase.LoadPostData C# (CSharp) Method

LoadPostData() private method

private LoadPostData ( string postDataKey, NameValueCollection postCollection ) : bool
postDataKey string
postCollection System.Collections.Specialized.NameValueCollection
return bool
        protected virtual bool LoadPostData(string postDataKey, NameValueCollection postCollection)
        {
            this.HasLoadPostData = true;

            string val = postCollection[this.ConfigID.ConcatWith("_Pressed")];

            if (val.IsNotEmpty())
            {
                bool pressedState;

                if (bool.TryParse(val.ToLowerInvariant(), out pressedState))
                {
                    if (this.Pressed != pressedState)
                    {
                        try
                        {
                            this.SuspendScripting();
                            this.Pressed = pressedState;
                        }
                        finally
                        {
                            this.ResumeScripting();
                        }

                        return true;
                    }
                }
            }

            return false; 
        }