예제 #1
0
 public VisualPin(PinRole _pinRole, Type _type, bool _isVariable, string _pinName)
 {
     pinRole       = _pinRole;
     pinType       = _type;
     pinIsVariable = _isVariable;
     pinName       = _pinName;
 }
예제 #2
0
        public BasePin(Type _pinType, PinRole _pinRole, BaseNode _parentNode = null) //Fix this _parentNode stuff
        {
            otherConnectedPin = null;
            pinType           = _pinType;
            pinRole           = _pinRole;
            parentNode        = _parentNode;

            this.Size = new Size(10, 10);

            Console.Out.WriteLine(pinType);

            this.BackColor = GetPinColor(pinType);

            this.Click += BasePinClick;
        }