Пример #1
0
        public WireView(WireConnection connection)
        {
            InitializeComponent();

            InitLine();

            this.connection = connection;
        }
Пример #2
0
        public void SetConnection(WireConnection con)
        {
            connection = con;

            XLine.X1 = con.StartPoint.X;
            XLine.Y1 = con.StartPoint.Y;
            XLine.X2 = con.EndPoint.X;
            XLine.Y2 = con.EndPoint.Y;

            //must be called to update coordinates immediately
            UpdateLayout();
        }