Beispiel #1
0
        public virtual DrawFBDBox GetLeftEndConnectionDrawFBDBox(int _pinno)
        {
            if (LeftPins[_pinno].Connected)
            {
                Guid     wireguid  = LeftPins[_pinno].GetRightGUID();
                DrawWire _drawwire = Parentpagelist.GetDrawWireObject(wireguid);
                return(Parentpagelist.GetFBDBoxObject(_drawwire.LeftGuid));
            }

            return(null);
        }
Beispiel #2
0
        public virtual string GetLeftEndConnectionStringOfPin(int _pinno)
        {
            if (LeftPins[_pinno].Connected)
            {
                Guid     wireguid  = LeftPins[_pinno].GetRightGUID();
                DrawWire _drawwire = Parentpagelist.GetDrawWireObject(wireguid);
                return(Parentpagelist.GetFBDBoxObject(_drawwire.LeftGuid).GetOutputPinExpression(_drawwire.LeftPinNo));
                //DrawFBDBox drawfbdbox = drawArea.GetFBDBoxObject(leftguid);
                //return drawfbdbox.GetRightPinConnectionString(_drawwire.LeftPinNo);
            }

            return("");
        }
        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
        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);
        }