Exemple #1
0
        private void tv_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (MouseButtons == MouseButtons.Right)
            {
                return;
            }

            WebResourceSelected?.Invoke(this, new WebResourceSelectedEventArgs(SelectedResource));
        }
Exemple #2
0
        private void Tv_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            tv.SelectedNode = e.Node;

            if (e.Button == MouseButtons.Right)
            {
                return;
            }

            WebResourceSelected?.Invoke(this, new WebResourceSelectedEventArgs(SelectedResource));
        }