Пример #1
0
        public BusShape(IModel model, CommandReference reference, IFlyweightShape<BusShape> fly)
            : base(model)
        {
            this.sysRef = reference;

            busConnector = new YttriumConnector(Model, ConnectorType.BusConnector); //new Point((int)(Rectangle.Left + Rectangle.Width / 2), Rectangle.Bottom),
            busConnector.Name = "Bus";
            busConnector.Parent = this;
            Connectors.Add(busConnector);

            AssignFly(fly);
        }
Пример #2
0
        public SignalShape(IModel model, CommandReference reference, IFlyweightShape<SignalShape> fly)
            : base(model)
        {
            this.sysRef = reference;

            outConnector = new YttriumConnector(Model, ConnectorType.SignalOutputConnector);
            outConnector.Name = "Output";
            outConnector.Parent = this;
            Connectors.Add(outConnector);

            inConnector = new YttriumConnector(Model, ConnectorType.SignalInputConnector);
            inConnector.Name = "Input";
            inConnector.Parent = this;
            Connectors.Add(inConnector);

            AssignFly(fly);
        }