Added double click open to printer tree view item
This commit is contained in:
parent
fe34a70d86
commit
f32bc86e12
3 changed files with 46 additions and 13 deletions
|
|
@ -66,6 +66,18 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
|
||||
this.TreeView.NotifyItemClicked(this.TitleBar, e);
|
||||
};
|
||||
|
||||
this.TitleBar.MouseDown += (s, e) =>
|
||||
{
|
||||
if (TreeView != null
|
||||
&& e.Button == MouseButtons.Left
|
||||
&& e.Clicks == 2)
|
||||
{
|
||||
TreeView.SelectedNode = this;
|
||||
this.TreeView.NotifyItemDoubleClicked(this.TitleBar, e);
|
||||
}
|
||||
};
|
||||
|
||||
this.AddChild(this.TitleBar);
|
||||
|
||||
// add a check box
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue