コード例 #1
0
ファイル: SetBoardElement.cs プロジェクト: Cloudxtreme/bot-9
            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);
                    }
                }
            }
コード例 #2
0
 protected override DrawingImage ConvertBase(SetCard input)
 {
     return(new DrawingImage(SetCardDrawingFactory.GetCardDesignDrawing(input)));
 }