/// <summary> /// Propagate the BoxClicked event from root container. /// </summary> protected virtual void OnBoxClicked(BoxClickedEventArgs e) { var handler = BoxClicked; if (handler != null) { handler(this, e); } }
/// <summary> /// Handles the case where a box with the attribute "clickable" has been clicked or double clicked /// </summary> public void HandleBoxClicked(int clickNb, RPoint location) { CssBox box = DomUtils.SearchClickedBox(_root, OffsetByScroll(location)); if (box != null) { if (BoxClicked != null) { var args = new BoxClickedEventArgs(box.GetAttribute("clickable"), clickNb); try { BoxClicked(this, args); } catch (Exception ex) { throw new HtmlLinkClickedException("Error in box clicked intercept", ex); } if (args.Handled) { return; } } } }
private void OnBoxClicked(object sender, BoxClickedEventArgs e) { OnBoxClicked(e); }
/// <summary> /// Propagate the BoxClicked event from root container. /// </summary> protected virtual void OnBoxClicked(BoxClickedEventArgs e) { BoxClicked?.Invoke(this, e); }