示例#1
0
        public void pool_NodeInstanceCreated(NodePool sender, NodeInstanceCreatedEventArgs e)
        {
            /*
            var nodeinst = new System.Windows.Forms.ToolStripDropDownButton(e.nodeInstance.name, null);
            nodeinst.DropDownItems.Add(new ToolStripButton("start"));
            nodeinst.DropDownItems.Add(new ToolStripButton("kill"));
            nodeinst.DropDownItems.Add(new ToolStripButton("restart"));
            */

            var nodeinst = new NodeInstanceToolStripItem(e.nodeInstance);
            nodeinst.Image = global::nodepool.Resources.icon.stop_16;
            systrayMenuStrip.Items.Insert(0, nodeinst);
        }
示例#2
0
 public void OnNodeInstanceCreated(NodeInstanceCreatedEventArgs e = null)
 {
     if (NodeInstanceCreated != null)
         NodeInstanceCreated(this, e);
 }