Raccoom.Windows.Forms.TreeViewFolderBrowser.OnDoubleClick C# (CSharp) Method

OnDoubleClick() protected method

Used for drives like floppy, cd - rom ect. where it can be that no valid medium is inserted. in this case the click on the + will remove the +, after double click there's a new + to give the user the chance to browse this device after inserting a valid medium.
protected OnDoubleClick ( EventArgs e ) : void
e System.EventArgs
return void
        protected override void OnDoubleClick(EventArgs e)
        {
            if (SelectedNode == null) return;
              //
              TreeNodePath node = SelectedNode as TreeNodePath;
              if (node == null) return;
              //
              if ((node.Nodes.Count > 0) || (node.Path.Length > 3)) return;
              //
              node.AddDummyNode();
              //
              base.OnDoubleClick(e);
        }