UpdateCardText() public method

public UpdateCardText ( Card>.Action action ) : void
action Card>.Action
return void
Exemplo n.º 1
0
 public CardRun(ChatCard card)
     : base(new Run(card.ToString()))
 {
     this.FontWeight = FontWeights.Bold;
     this.Foreground = Brushes.DarkSlateGray;
     this.Cursor     = Cursors.Hand;
     _card           = card;
     _card.UpdateCardText((model, gamecard) =>
     {
         (this.Inlines.FirstInline as Run).Text = model.PropertyName();
     });
 }
Exemplo n.º 2
0
 public CardRun(ChatCard card)
     : base(new Run(card.ToString()))
 {
     this.FontWeight = FontWeights.Bold;
     this.Foreground = Brushes.DarkSlateGray;
     this.Cursor = Cursors.Hand;
     _card = card;
     _card.UpdateCardText((model, gamecard) =>
         {
             (this.Inlines.FirstInline as Run).Text = model.PropertyName();
         });
 }