public bool Placegamble(int gambleAmount, int DogToWin) { if (gambleAmount <= Cash) { Mygamble = new gamble() { Amount = gambleAmount, Dog = DogToWin, Bettor = this }; UpdateLabel(); return(true); } MessageBox.Show(Name + " doesn't have enough in cash to gamble this amount!"); return(false); }
public void Cleargamble() { Mygamble = null; MyLabel.Text = Name + " hasn't placed gamble yet!"; }