Beispiel #1
0
        public FBDboxObject(DrawFBDBox _parent)
        {
            DrawFunctionParent = _parent;

            PinCollectionInput  = new FBDObjectPinCollection(this);
            PinCollectionOutput = new FBDObjectPinCollection(this);
        }
Beispiel #2
0
        public virtual List <int> GetRightSideConnectionTypes(int _pinno)
        {
            List <int> _type = new List <int>();

            foreach (Guid guid in  RightPins[_pinno].WireConnectionID)
            {
                DrawWire   _drawwire  = Parentpagelist.GetDrawWireObject(guid);
                Guid       rightguid  = _drawwire.RightGuid;
                DrawFBDBox drawfbdbox = Parentpagelist.GetFBDBoxObject(rightguid);
                _type.Add(drawfbdbox.GetLeftPinType(_drawwire.RightPinNo));
            }

            return(_type);
        }
        public override string GetLeftEndConnectionStringOfPin(int _pinno)
        {
            if (LeftPins[_pinno].Connected)
            {
                Guid       wireguid   = LeftPins[_pinno].GetRightGUID();
                DrawWire   _drawwire  = Parentpagelist.GetDrawWireObject(wireguid);
                Guid       leftguid   = _drawwire.LeftGuid;
                DrawFBDBox drawfbdbox = Parentpagelist.GetFBDBoxObject(leftguid);
                //drawfbdbox.GetLeftEndConnectionStringOfPin(_drawwire.LeftPinNo);
                return(LeftPins[_pinno].PinName + ":=" + drawfbdbox.GetRightPinConnectionString(_drawwire.LeftPinNo));
            }

            return("");
        }
Beispiel #4
0
        //private FBDboxObject _fbdboxobject;
        //[Description("Represents collection of input pins for graphical use")]
        //[TypeConverter(typeof(FBDboxObjectTypeConverter))]
        //public FBDboxObject fbdboxobject
        //{
        //    get
        //    {
        //        return _fbdboxobject;
        //    }
        //    set
        //    {
        //        _fbdboxobject = value;
        //    }
        //}



        #endregion

        /// <summary>
        /// Clone this instance
        /// </summary>
        public override DrawObject Clone()
        {
            DrawFBDBox drawfbdbox = new DrawFBDBox(Parentpagelist);

            return(drawfbdbox);
        }