private void TvConnections_Click(object sender, MouseEventArgs e)
{
if (BlockStudioProjectService.BlockStudioProject == null)
{
return;
}
var p = new Point(e.X, e.Y);
var selectedNode = tvConnections.GetNodeAt(p);
if (selectedNode == null)
return;
var baseTreeNode = (BaseTreeNode) selectedNode;
// check if the right mouse button was pressed
if (e.Button == MouseButtons.Left)
{
//TvConnectionsLeftClick(baseTreeNode);
}
else if (e.Button == MouseButtons.Right)
{
tvConnections.SelectedNode = baseTreeNode;
TvConnectionsRightClick(baseTreeNode);
}
}