FlatStyle


Node Information
Enum type of System.Windows.Forms.FlatStyle.
General Information
• This is an enum variable type, you can change its value directly in the node visual.
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Value OUT Enum MULTIPLE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes
{
    public class EnumBase : Node
    {
        Port val = new Port(PortType.OUT, typeof(Enum), AcceptsLinks.MULTIPLE, "Value");
        public EnumBase()
        {
            NodeType = KGraph.NodeType.Variable;
            AddPort(val);
        }
        public override string Code()
        {
            this.Name = ReturnType.Name;
            val.DataType = ReturnType;
            val.Instructions = this.ID;
            return ReturnType.FullName + "." + val.Value;
        }
        public override void UpdateResults()
        {
            this.Name = ReturnType.Name;
            Information = "Enum type of " + ReturnType.FullName + ".";
        }
    }
}