Exemplo n.º 1
0
 // TODO: tester si un item au nom identique ne tourne pas deja
 public void pool_NodeInstanceStarted(object sender, NodeInstanceStartedEventArgs e)
 {
     foreach (ToolStripItem i in systrayMenuStrip.Items)
     {
         if (i.Text == e.nodeInstance.name)
         {
             //systray.ShowBalloonTip(100, "NodePool", "\n\"" + e.nodeInstance.name + "\" node started\n", new ToolTipIcon());
             //Console.WriteLine("Node instance started");
             i.Image = global::nodepool.Resources.icon.play_16;
             break;
         }
     }
 }
Exemplo n.º 2
0
 /**
  * [FR]
  * Notre instance de node vient de demarrer
  */
 public void _nodeInstance_NodeInstanceStarted(object sender, NodeInstanceStartedEventArgs e)
 {
     if (InvokeRequired)
     {
         Invoke((MethodInvoker)delegate { startButton.Enabled = false; debugButton.Enabled = false; });
         Invoke((MethodInvoker)delegate { stopButton.Enabled = true; });
     }
     else
     {
         startButton.Enabled = false;
         debugButton.Enabled = false;
         stopButton.Enabled = true;
     }
 }
Exemplo n.º 3
0
        /**
         * [FR]
         * Notre instance de node vient de demarrer
         */
        public void _nodeInstance_NodeInstanceStarted(object sender, NodeInstanceStartedEventArgs e)
        {
            if (InvokeRequired)
            {
                Invoke((MethodInvoker)delegate { startButton.Enabled = false; debugButton.Enabled = false; });
                Invoke((MethodInvoker)delegate { stopButton.Enabled = true; });
            }
            else
            {
                startButton.Enabled = false;
                debugButton.Enabled = false;
                stopButton.Enabled = true;
            }

            // debug window
            if (_nodeInstance.isDebugModeOn)
            {
                System.Diagnostics.Process.Start("http://localhost:" + _nodeInstance.webDebugPort + "/debug?port=" + _nodeInstance.debugPort);
            }
        }
Exemplo n.º 4
0
        public void OnNodeInstanceStarted(NodeInstanceStartedEventArgs e = null)
        {
            if (NodeInstanceStarted != null)
                NodeInstanceStarted(this, e);

            String msg = "// [>] NODE STARTED //";
            if (_lastlyDebugged)
                msg += " DEBUG_PORT=" + _debugPort + " NODE_INSPECTOR_PORT=" + _webDebugPort;
            _processOutputString = _processOutputString + "\r\n" + msg;
            OnNodeInstanceStandardOutput(new NodeInstanceStandardOutputEventArgs(this, msg));
        }
Exemplo n.º 5
0
 /**
  * [FR]
  * Notre instance de node vient de demarrer
  */
 public void _nodeInstance_NodeInstanceStarted(object sender, NodeInstanceStartedEventArgs e)
 {
 }
Exemplo n.º 6
0
 // TODO: tester si un item au nom identique ne tourne pas deja
 public void pool_NodeInstanceStarted(object sender, NodeInstanceStartedEventArgs e)
 {
     OnNodeInstanceStarted(e);
 }
Exemplo n.º 7
0
 public void OnNodeInstanceStarted(NodeInstanceStartedEventArgs e = null)
 {
     if (NodeInstanceStarted != null)
         NodeInstanceStarted(this, e);
 }