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); }
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; }
public RegisteredModeTableForm( UserInfo user ) { User = user; InitializeComponent(); }