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

LoadPostData() private method

private LoadPostData ( string postDataKey, NameValueCollection postCollection ) : bool
postDataKey string
postCollection NameValueCollection
return bool
        protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
        {
            this.baseLoadPostData = base.LoadPostData(postDataKey, postCollection);
            string val = postCollection[this.ConfigID.ConcatWith("_ActiveTab")];

            if (val.IsNotEmpty())
            {
                int activeTabNum;
                string[] at = val.Split(':');

                if (int.TryParse(at.Length > 1 ? at[1] : at[0], out activeTabNum))
                {
                    int index = this.Items.FindIndex(delegate(Component tab)
                    {
                        return tab.ClientID == at[0];
                    });

                    if (index >=0)
                    {
                        activeTabNum = index;
                    }
                    else
                    {
                        if (this.Visible)
                        {
                            for (int i = 0; i <= activeTabNum; i++ )
                            {
                                if (i < this.Items.Count && (!this.Items[i].Visible || this.Items[i].Hidden))
                                {
                                    activeTabNum++;
                                }
                            }
                        }
                    }

                    if (activeTabNum > -1 && this.ActiveTabIndex != activeTabNum)
                    {
                        this.SuspendScripting();
                        this.ActiveTabIndex = activeTabNum;
                        this.ResumeScripting();
                        thisLoadPostData = true;
                        return true;
                    }
                }
            }

            return false || this.baseLoadPostData; 
        }