Esempio n. 1
0
 /**
  * [FR]
  * Notre instance de node vient de s'arreter
  */
 public void _nodeInstance_NodeInstanceStopped(object sender, NodeInstanceStoppedEventArgs e)
 {
     if (InvokeRequired)
     {
         Invoke((MethodInvoker)delegate { startButton.Enabled = true; debugButton.Enabled = true; });
         Invoke((MethodInvoker)delegate { stopButton.Enabled = false; });
     }
     else
     {
         startButton.Enabled = true;
         debugButton.Enabled = true;
         stopButton.Enabled = false;
     }
 }
Esempio n. 2
0
        public void OnNodeInstanceStopped(NodeInstanceStoppedEventArgs e = null)
        {
            if (NodeInstanceStopped != null)
                NodeInstanceStopped(this, e);

            String msg = "// [x] NODE STOPPED //";
            _processOutputString = _processOutputString + "\r\n" + msg;
            OnNodeInstanceStandardOutput(new NodeInstanceStandardOutputEventArgs(this, msg));
        }
Esempio n. 3
0
 /**
  * [FR]
  * Notre instance de node vient de s'arreter
  */
 public void _nodeInstance_NodeInstanceStopped(object sender, NodeInstanceStoppedEventArgs e)
 {
 }
Esempio n. 4
0
 public void pool_NodeInstanceStopped(object sender, NodeInstanceStoppedEventArgs e)
 {
     if (InvokeRequired)
     {
         this.Invoke(new pool_NodeInstanceStoppedDelegate(pool_NodeInstanceStopped), new object[] { sender, e });
     }
     else
     {
         foreach (ToolStripItem i in systrayMenuStrip.Items)
         {
             if (i.Text == e.nodeInstance.name)
             {
                 if (e.nodeCrashed)
                 {
                     string txt = "\n\"" + e.nodeInstance.name + "\" node crashed x|";
                     if (e.nodeInstance.restartOnCrash)
                         txt += ".\n\nIt will be automaticly restarted according to restart-on-crash settings.\n";
                     txt += "\n";
                     systray.ShowBalloonTip(1500, "NodePool", txt, new ToolTipIcon());
                 }
                 else
                 {
                     //systray.ShowBalloonTip(100, "NodePool", "\n\"" + e.nodeInstance.name + "\" node stopped\n", new ToolTipIcon());
                 }
                 //Console.WriteLine("Node instance stopped");
                 i.Image = global::nodepool.Resources.icon.stop_16;
                 break;
             }
         }
     }
 }
Esempio n. 5
0
 public void pool_NodeInstanceStopped(object sender, NodeInstanceStoppedEventArgs e)
 {
     OnNodeInstanceStopped(e);
 }
Esempio n. 6
0
 public void OnNodeInstanceStopped(NodeInstanceStoppedEventArgs e = null)
 {
     if (NodeInstanceStopped != null)
         NodeInstanceStopped(this, e);
 }