Exemple #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;
        }
        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;
        }