예제 #1
0
파일: Guy.cs 프로젝트: endurance/HFCsharp
 public Guy(string name, int Cash, Label MyLabel, RadioButton guyButton)
 {
     Name = name;
     this.Cash = Cash;
     this.MyLabel = MyLabel;
     MyRadioButton = guyButton;
     MyBet = null;
 }
예제 #2
0
 public bool PlaceBet(int BetAmount, string DogToWin, decimal Test)
 {
     this.MyBet = new Bet() { Amount = BetAmount, Dog = DogToWin, Bettor = this, odds = Test};
     if (BetAmount <= Cash)
     {
          MyLabel2.Text = this.Name + " bets " + BetAmount + " dollars on " + DogToWin;
           this.UpdateLabels();
            return true;
     }
     else
     {
           MessageBox.Show(Name + " does not have enough to cover that bet ");
           this.MyBet = null;
          return false;
     }
 }
예제 #3
0
파일: Guy.cs 프로젝트: endurance/HFCsharp
 public bool PlaceBet(int Amount, int Dog)
 {
     MyBet = new Bet(Amount, Dog, this);
     UpdateLabels();
     return false;
 }
예제 #4
0
파일: Guy.cs 프로젝트: endurance/HFCsharp
 public void ClearBet()
 {
     MyBet = null;
 }
예제 #5
0
 public bool PlaceBet(int Amount, int Dog)
 {
     MyBet = new Bet(Amount, Dog, this);
     UpdateLabels();
     return(false);
 }
예제 #6
0
 public void ClearBet()
 {
     MyBet = null;
 }
예제 #7
0
 public void ClearBet()
 {
     MyBet         = null;
     MyLabel2.Text = Name + " hasn't placed a bet";
 }
예제 #8
0
 public void ClearBet()
 {
     MyBet = null;
     MyLabel2.Text = Name + " hasn't placed a bet";
 }