Closed GoogleCodeExporter closed 9 years ago
Add-on: To reproduce the issue one has in step 2 to double click on a folder
node which is not a parent of the currently selecte node.
Original comment by breker.c...@gmail.com
on 15 Jun 2012 at 1:40
Instead of a MouseClick event on treeView1 we should IMO use a NodeMouseClick
event with code like the following:
private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
// e is null if this method is called from connectToolStripMenuItem_Click
TreeNode node = (e != null) ? e.Node : treeView1.SelectedNode;
if (IsSessionNode(node) && node == treeView1.SelectedNode)
{
SessionData sessionData = (SessionData)node.Tag;
SuperPuTTY.OpenPuttySession(sessionData);
}
}
Also connectToolStripMenuItem_Click would have to be changed to:
private void connectToolStripMenuItem_Click(object sender, EventArgs e)
{
treeView1_NodeMouseDoubleClick(null, EventArgs.Empty as TreeNodeMouseClickEventArgs);
}
With this change the folder on whose + or - sign one double clicks is still
expanded and collapsed in short order but no PuTTY session is started.
Original comment by breker.c...@gmail.com
on 15 Jun 2012 at 2:11
Applied fix.
will be in final 1.2 build (#14).
Original comment by btatey...@gmail.com
on 16 Jun 2012 at 11:38
Original issue reported on code.google.com by
breker.c...@gmail.com
on 15 Jun 2012 at 12:55