protected virtual void OnClick(WebTab tab) { ArgumentUtility.CheckNotNull("tab", tab); tab.OnClick(); WebTabClickEventHandler handler = (WebTabClickEventHandler)Events[s_clickEvent]; if (handler != null) { WebTabClickEventArgs e = new WebTabClickEventArgs(tab); handler(this, e); } }
/// <summary> /// Event handler for the <see cref="WebTabStrip.Click"/> of the <see cref="SubMenuTabStrip"/>. /// </summary> private void SubMenuTabStrip_Click(object sender, WebTabClickEventArgs e) { HandleTabStripClick((MenuTab)e.Tab); }