Example #1
0
        private void Initialize()
        {
            busConnector = new Connector(new Point((int)(Rectangle.Left + Rectangle.Width / 2),Rectangle.Bottom), Model);
            busConnector.Name = "Bus";
            Connectors.Add(busConnector);

            foreach(IConnector con in Connectors)
            {
                con.Parent = this;
            }

            AutoSize = false;
            Width = 20;
            Height = 20;
            Resizable = false;
            Text = sysRef.Index.ToString();

            PaintStyle = new GradientPaintStyle(Color.DarkGreen, Color.Yellow, -135);
        }
Example #2
0
        private void Initialize()
        {
            outConnector = new Connector(new Point(Rectangle.Right, (int)(Rectangle.Top + Rectangle.Height / 2)), Model);
            outConnector.Name = "Output";
            Connectors.Add(outConnector);

            inConnector = new Connector(new Point(Rectangle.Left, (int)(Rectangle.Top + Rectangle.Height / 2)), Model);
            inConnector.Name = "Input";
            Connectors.Add(inConnector);

            foreach(IConnector con in Connectors)
            {
                con.Parent = this;
            }

            AutoSize = false;
            Width = 20;
            Height = 20;
            Resizable = false;
            Text = sysRef.Index.ToString();

            PaintStyle = new GradientPaintStyle(Color.OrangeRed, Color.Yellow, -135);
        }
Example #3
0
        private void Initialize()
        {

            foreach(IConnector con in Connectors)
            {
                con.Parent = this;
            }

            AutoSize = false;
            Width = 60;
            Height = 40;
            Resizable = false;
            Text = sysRef.Index.ToString();

            PaintStyle = new GradientPaintStyle(Color.OrangeRed, Color.Yellow, -135);
        }