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

LoadPostData() private method

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

            bool isChecked = false;
            
            string val = postCollection[this.UniqueName];

            this.SuspendScripting();
            this.RawValue = val;
            this.ResumeScripting();

            if (val.IsNotEmpty() && val.Equals(this.InputValue))
            {

                try
                {
                    this.SuspendScripting();

                    if (!this.Checked)
                    {
                        this.Checked = true;
                        isChecked = true;
                    }
                }
                finally
                {
                    this.ResumeScripting();
                }

                return isChecked;
            }

            try
            {
                this.SuspendScripting();

                if (this.Checked)
                {
                    this.Checked = false;
                }
            }
            finally
            {
                this.ResumeScripting();
            }

            return isChecked;
        }