Ext.Net.GroupTabPanel.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)
        {
            baseLoadPostData = base.LoadPostData(postDataKey, postCollection);
            string val = postCollection[this.ConfigID.ConcatWith("_ActiveTab")];

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

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

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

                    if (activeGroupNum > -1 && this.ActiveGroupIndex != activeGroupNum)
                    {
                        this.ViewState.Suspend();
                        this.ActiveGroupIndex = activeGroupNum;
                        this.ViewState.Resume();
                        thisLoadPostData = true;
                        return true;
                    }
                }
            }

            return false || baseLoadPostData;
        }