Ejemplo n.º 1
0
        private void ShowSelected(ItemOfRecycle ItOfRec)
        {
            Item It = (Item)ItOfRec.Item;
            //  Graphics OldG = It.G;
            Graphics G = Graphics.FromHwnd(pOut.Handle);

            switch (It.TypeShape)
            {
            case Nows.Line:
                Line L = (Line)ItOfRec.Item;
                L.RePain(0, 0, k, G);                   //.38
                break;

            case Nows.Rec:
                Rec R = (Rec)ItOfRec.Item;
                R.RePain(0, 0, FillState, k, G);
                break;

            case Nows.Ellip:
            case Nows.Pie:
                Pie P = (Pie)ItOfRec.Item;
                P.RePain(0, 0, FillState, k, G);
                break;

            case Nows.Group:
                GroupItem GI = (GroupItem)ItOfRec.Item;
                GI.RePain(0, 0, FillState, k, G);
                break;
            }
            // It.G = OldG;
        }