public NativeTreeViewDoubleClickDecorator(NativeTreeView treeView, Func <DateTime> getCurrentTime)
 {
     _treeView = treeView;
     _treeView.BeforeCollapse += HandleBeforeDoubleClickExpandCollapse;
     _treeView.BeforeExpand   += HandleBeforeDoubleClickExpandCollapse;
     _treeView.MouseDown      += OnMouseDown;
     _getCurrentTime           = getCurrentTime;
 }
Esempio n. 2
0
        public NativeTreeViewExplorerNavigationDecorator(NativeTreeView treeView, Func <DateTime> getCurrentTime)
        {
            _treeView       = treeView;
            _getCurrentTime = getCurrentTime;

            _treeView.KeyDown        += OnKeyDown;
            _treeView.PreviewKeyDown += OnPreviewKeyDown;
            _treeView.AfterSelect    += OnAfterSelect;
            _treeView.NodeMouseClick += OnNodeMouseClick;
        }
Esempio n. 3
0
 public NativeTreeViewExplorerNavigationDecorator(NativeTreeView treeView)
     : this(treeView, () => DateTime.Now)
 {
 }
 public NativeTreeViewDoubleClickDecorator(NativeTreeView treeView)
     : this(treeView, () => DateTime.Now)
 {
 }