public void unmortgage_property(Property property) { properties_mortgaged.Remove(property); properties_owned.Add(property); money -= property.get_price(); property.unmortgage(); refresh_properties(); }
public void buy(Property property) { property.buy(this); //call buy method of property to set owner money -= property.get_price(); properties_owned.Add(property); Console.WriteLine("Congratulations! You now own {0}. Your new bank balance is ${1}. " + "Below is more information about your purchase:\n\n{2}", property.get_name(), money, property); refresh_properties(); }