Beispiel #1
0
        public void AddRectangle(CRectangle rect, TreeView tree)
        {
            tree.Nodes[1].Nodes.Add(
                "X1: " + rect._first._nX.ToString() + " Y1: " + rect._first._nY.ToString() +
                " X2: " + rect._second._nX.ToString() + " Y2: " + rect._second._nY.ToString() +
                " Thi: " + rect._fWidth.ToString());

            tree.ExpandAll();

            _Rectangles[_nNumRectangles]         = new CRectangle();
            _Rectangles[_nNumRectangles]._first  = rect._first;
            _Rectangles[_nNumRectangles]._second = rect._second;
            _Rectangles[_nNumRectangles]._fWidth = rect._fWidth;
            _nNumRectangles++;
        }