NotifyIcon ShowBalloonTip


Node Information
Shows BalloonTip on the specified NotifyIcon.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Add IN RUN MULTIPLE FALSE FALSE
NotifyIcon IN NotifyIcon ONE FALSE FALSE
TimeOut IN Int32 ONE FALSE FALSE
Title IN String ONE FALSE FALSE
Text IN String ONE FALSE FALSE
Icon IN ToolTipIcon ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.NotifyIcon
{
    [IsNode("ShowBalloonTip")]
    public class NotifyIconShowBalloonTip : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Add");
        Port timeout = new Port(PortType.IN, typeof(int), AcceptsLinks.ONE, "TimeOut");
        Port title = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Title");
        Port text = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Text");
        Port icon = new Port(PortType.IN, typeof(System.Windows.Forms.ToolTipIcon), AcceptsLinks.ONE, "Icon");
        Port control = new Port(PortType.IN, typeof(System.Windows.Forms.NotifyIcon), AcceptsLinks.ONE, "NotifyIcon");
        public int TimeOut
        {
            set { timeout.Value = value.ToString(); }
            get { return GetRuntimeValue(timeout); }
        }
        public string Title
        {
            set { title.Value = value.ToString(); }
            get { return GetRuntimeValue(title); }
        }
        public string Text
        {
            set { text.Value = value.ToString(); }
            get { return GetRuntimeValue(text); }
        }
        public System.Windows.Forms.ToolTipIcon Icon
        {
            set { icon.Value = value.ToString(); }
            get
            {
                if (icon.Value == null || icon.Value == string.Empty)
                {
                    return System.Windows.Forms.ToolTipIcon.None;
                }
                else
                {
                    return (System.Windows.Forms.ToolTipIcon)Enum.Parse(typeof(System.Windows.Forms.ToolTipIcon), icon.Value);
                }
            }
        }
        public NotifyIconShowBalloonTip()
        {
            this.Name = "NotifyIcon ShowBalloonTip";
            this.NodeType = KGraph.NodeType.Method;
            icon.DataType = typeof(System.Windows.Forms.ToolTipIcon);
            AddPort(run);
            AddPort(control);
            AddPort(timeout);
            AddPort(title);
            AddPort(text);
            AddPort(icon);
            Information = "Shows BalloonTip on the specified NotifyIcon.";
        }
        public override string Code()
        {
            return GetValue(control) + ".ShowBalloonTip(" + GetValue(timeout) + "," + GetValue(title) + "," + GetValue(text) + "," + GetValue(icon) + ");";
        }
    }
}