/// <summary> /// Called if the user selects a new table of contents item /// </summary> /// <param name="sender">sender of the event</param> /// <param name="e">event parameters</param> private void tocTree1_TocSelected(object sender, TocEventArgs e) { if (e.Item.Local.Length > 0) { NavigateBrowser(e.Item.Url); } }
/// <summary> /// Fireing the on selected event /// </summary> /// <param name="e">event parameters</param> protected virtual void OnTocSelected(TocEventArgs e) { if (TocSelected != null) { TocSelected(this, e); } }