public void SetCard(SetCard card)
            {
                if (m_card != card)
                {
                    m_card = card;

                    if (m_card != null)
                    {
                        Drawing         drawing  = SetCardDrawingFactory.GetFullCardDrawing(m_card);
                        DrawingBrush    brush    = new DrawingBrush(drawing);
                        DiffuseMaterial material = new DiffuseMaterial(brush);
                        material.Freeze();

                        m_geometry.Material = material;
                    }
                    else
                    {
                        m_geometry.Material = new DiffuseMaterial(Brushes.Transparent);
                    }
                }
            }
Esempio n. 2
0
        public static DrawingImage Convert(SetCard setCard)
        {
            Util.RequireNotNull(setCard, "setCard");

            return(new DrawingImage(SetCardDrawingFactory.GetFullCardDrawing(setCard)));
        }