Esempio n. 1
0
        private void ProjectTreeView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TreeNode    SelectedNode = ProjectTreeView.GetNodeAt(e.Location);
            imsBaseNode tempNode     = ((imsBaseNode)(SelectedNode.Tag));

            if (tempNode != null)
            {
                NodePropertyGrid.SelectedObject = ((imsBaseNode)(SelectedNode.Tag));
            }
        }
Esempio n. 2
0
 private void ProjectTreeView_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Clicks == 2)
     {
         ProjectTreeViewDoubleClicked = true;
     }
     else
     {
         ProjectTreeViewDoubleClicked = false;
     }
     // 右クリックでもノードを選択させる
     if (e.Button == MouseButtons.Right)
     {
         var node = ProjectTreeView.GetNodeAt(e.X, e.Y);
         ProjectTreeView.SelectedNode = node;
         var mynode = node as MyTreeNode;
         if (mynode != null)
         {
             mynode.CheckPastable();
         }
     }
 }
 /// <summary>
 /// Click souris
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ProjectTreeView_MouseClick(object sender, MouseEventArgs e)
 {
     ProjectTreeView.SelectedNode = ProjectTreeView.GetNodeAt(e.X, e.Y);
 }