Ejemplo n.º 1
0
        public ServerTreeNode(ServerForm serverWindow)
        {
            ServerWindow             = serverWindow;
            Text                     = serverWindow.Server.Url;
            serverWindow.FormClosed += serverWindow_FormClosed;

            ContextMenuStrip = new ServerNodeContextMenu();
            ((ServerNodeContextMenu)ContextMenuStrip).DisconnectClick += delegate { ServerWindow.Close(); };
            serverWindow.Server.Registered += Server_Registered;
        }
Ejemplo n.º 2
0
        public ServerTreeNode(ServerForm serverWindow)
        {
            ServerWindow = serverWindow;
            Text = serverWindow.Server.Url;
            serverWindow.FormClosed += serverWindow_FormClosed;

            ContextMenuStrip = new ServerNodeContextMenu();
            ((ServerNodeContextMenu)ContextMenuStrip).DisconnectClick += delegate { ServerWindow.Close(); };
            serverWindow.Server.Registered += Server_Registered;
        }