Пример #1
0
        private void monitorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode   node   = tree_clients.SelectedNode;
            GodEyeForm godEye = new GodEyeForm(node.Tag as Socket);

            godEye.OnOff();
            godEye.Show();
        }
Пример #2
0
        private void tree_clients_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (e.Node.Name.Equals("root"))
            {
                return;
            }

            if (e.Button.Equals(MouseButtons.Right))
            {
                //var p = PointToScreen(tree_clients.Location);
                //int x = MousePosition.X - p.X;
                //int y = MousePosition.Y - p.Y;

                return;
            }

            TreeNode   node   = tree_clients.SelectedNode;
            GodEyeForm godEye = new GodEyeForm(node.Tag as Socket);

            godEye.OnOff();
            godEye.Show();
        }