Exemplo n.º 1
0
        private void ExtractButton_Click(object sender, RoutedEventArgs e)
        {
            int sum = string.IsNullOrEmpty(Sum.Text) ? 0 : int.Parse(Sum.Text);

            if (sum > 0)
            {
                currentUser.ExtractMoney(sum);
                UserInfo.Text = $"User: {currentUser.Id}\nBalance: {currentUser.UserAccount.Balance}";
            }
        }