コード例 #1
0
        public void RefreshUserInfo(string username)
        {
            Send(new GetUserCommand());

            var response = WaitAndReceive<GetUserResponse>();
            PlayerName = response.DisplayName;
            m_User = new UserInfo(username, "", response.Email, response.DisplayName, response.Money);
        }
コード例 #2
0
ファイル: BuyInForm.cs プロジェクト: BluffinMuffin/Client
 public BuyInForm(UserInfo user, TableParams parms)
 {
     InitializeComponent();
     lblAccountMoney.Text = Resources.BuyInForm_BuyInForm_Dollar + user.TotalMoney;
     lblMoneyUnit.Text = Resources.BuyInForm_BuyInForm_Dollar + parms.GameSize;
     lblMin.Text = Resources.BuyInForm_BuyInForm_Dollar + parms.MinimumBuyInAmount;
     lblMax.Text = Resources.BuyInForm_BuyInForm_Dollar + Math.Min(parms.MaximumBuyInAmount, user.TotalMoney);
     nudBuyIn.Minimum = parms.MinimumBuyInAmount;
     nudBuyIn.Maximum = (decimal)Math.Min(parms.MaximumBuyInAmount, user.TotalMoney);
     nudBuyIn.Increment = parms.GameSize;
     nudBuyIn.Value = parms.MinimumBuyInAmount;
 }
コード例 #3
0
 public RegisteredModeTableForm( UserInfo user )
 {
     User = user;
     InitializeComponent();
 }