private void tv_AfterSelect(object sender, TreeViewEventArgs e) { if (MouseButtons == MouseButtons.Right) { return; } WebResourceSelected?.Invoke(this, new WebResourceSelectedEventArgs(SelectedResource)); }
private void Tv_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { tv.SelectedNode = e.Node; if (e.Button == MouseButtons.Right) { return; } WebResourceSelected?.Invoke(this, new WebResourceSelectedEventArgs(SelectedResource)); }