Provides information about a command raised from a TabContainer
상속: System.Web.UI.WebControls.CommandEventArgs
예제 #1
0
        private void OnSelectTabCommand(object sender, TabCommandEventArgs e)
        {
            int selectedIndex = e.TabIndex;

            if (selectedIndex != _multiView.ActiveViewIndex)
            {
                // will trigger OnActiveViewChanged
                _multiView.ActiveViewIndex = selectedIndex;
                RebuildTabs();
            }
        }
		private void OnSelectTabCommand(object sender, TabCommandEventArgs e)
		{
			int selectedIndex = e.TabIndex;
			if (selectedIndex != _multiView.ActiveViewIndex)
			{
				// will trigger OnActiveViewChanged
				_multiView.ActiveViewIndex = selectedIndex;
				RebuildTabs();
			}
		}