ProgressBar Increment


Node Information
Advances the current position of the progress bar by the specified amount.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Set IN RUN MULTIPLE FALSE FALSE
ProgressBar IN ProgressBar ONE FALSE FALSE
Value IN Int32 ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.UI.ProgressBar
{
    [IsNode("Increment")]
    public class ProgressBarIncreaseByValue : Node
    {
        Port run = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Set");
        Port a = new Port(PortType.IN, typeof(int), AcceptsLinks.ONE, "Value");
        Port objectRef = new Port(PortType.IN, typeof(Korduene.Designer.Standard.ProgressBar), AcceptsLinks.ONE, "ProgressBar");
        public int Value
        {
            set { a.Value = value.ToString(); }
            get { return GetRuntimeValue(a); }
        }
        public ProgressBarIncreaseByValue()
        {
            this.Name = "ProgressBar Increment";
            this.NodeType = KGraph.NodeType.Method;
            AddPort(run);
            AddPort(objectRef);
            AddPort(a);
            Information = "Advances the current position of the progress bar by the specified amount.";
        }
        public override string Code()
        {
            return GetValue(objectRef) + ".Increment(" + GetValue(a) + ");";
        }
    }
}