示例#1
0
 public void UpdateGoodBalance(GoodBalanceChangedEvent _event)
 {
     VirtualGood good = _event.GetGood();
     int balance = _event.GetBalance();
     TextBlock balanceText = (TextBlock)MainStackPanel.FindName(good.getItemId() + "balance");
     balanceText.Text = "balance: " + balance.ToString();
 }