コード例 #1
0
        private void ChangeTabPage(int _tabIndex)
        {
            MultiView _mv = (MultiView)this.Parent.FindControl(this.TargetMultiView);

            if (_mv != null)
            {
                _mv.ActiveViewIndex = _tabIndex;
            }

            for (int _i = 0; _i < this._tabTitlePanels.Length; _i++)
            {
                if (this._tabTitlePanels[_i] == null)
                {
                    break;
                }
                if (_tabIndex == _i)
                {
                    _tabTitlePanels[_i].CssClass = "ajax-tab-container active";
                }
                else
                {
                    _tabTitlePanels[_i].CssClass = "ajax-tab-container";
                }
            }

            TabsControlEventArgs _me = new TabsControlEventArgs(_tabIndex);

            OnTabsControlClick(_me);
        }
コード例 #2
0
 protected virtual void OnTabsControlClick(TabsControlEventArgs e)
 {
     if (TabsControlClick != null)
     {
         TabsControlClick(this, e);
     }
 }