示例#1
0
 private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (treeView1.SelectedNode.Name == "folder")
     {
         return;
     }
     ScriptSelected?.Invoke(Path.ChangeExtension(GetFullPath(treeView1.SelectedNode), ".fsml"));
 }
示例#2
0
 private void treeView1_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F2)
     {
         BeginEdit();
     }
     else if (e.KeyCode == Keys.Enter)
     {
         if (treeView1.SelectedNode.Name == "folder")
         {
             return;
         }
         ScriptSelected?.Invoke(Path.ChangeExtension(GetFullPath(treeView1.SelectedNode), ".fsml"));
     }
 }