// Driver Components private void InitializeDriverComponents() { // initialize objects port = new ComPort(); func = new CoreLib(); // perforom configation com-port port.LoadPortConfig(); //port.Open(); // perform configuration user's interfaces portui = new UI.AppUI.Port(ref port); driverui = new UI.AppUI.Tree(); ((TreeView)driverui.Controls["functionsTree"]).NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(this.NodeMouseDoubleClick); }