public void OnNodeInstanceStarted(NodeInstanceStartedEventArgs e = null) { if (NodeInstanceStarted != null) { NodeInstanceStarted(this, e); } }
// 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; } } }
/** * [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; } }
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)); }
/** * [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); } }
// TODO: tester si un item au nom identique ne tourne pas deja public void pool_NodeInstanceStarted(object sender, NodeInstanceStartedEventArgs e) { OnNodeInstanceStarted(e); }
/** * [FR] * Notre instance de node vient de demarrer */ public void _nodeInstance_NodeInstanceStarted(object sender, NodeInstanceStartedEventArgs e) { }