private Property.Side ParseSide(int side) { Property.Side ret = Property.Side.UNKNOWN; switch (side) { case (int)Property.Side.TOP: ret = Property.Side.TOP; break; case (int)Property.Side.RIGHT: ret = Property.Side.RIGHT; break; case (int)Property.Side.LEFT: ret = Property.Side.LEFT; break; case (int)Property.Side.BOTTOM: ret = Property.Side.BOTTOM; break; default: break; } return(ret); }
public PropertyListing(String name, int cost, int rent, int house1, int house2, int house3, int house4, int hotel, int housecost, int mortgage, int loc, int side, SolidColorBrush color) { _name = name; _cost = cost; _loc = loc; _color = color; _rent = rent; _house1 = house1; _house2 = house2; _house3 = house3; _house4 = house4; _hotel = hotel; _housecost = housecost; _mortgage = mortgage; _side = ParseSide(side); }
public PropertyListing(String name, int cost, int rent, int house1, int house2, int house3, int house4, int hotel, int housecost, int mortgage, int loc, int side, SolidColorBrush color) { _name = name; _cost = cost; _loc = loc; _color = color; _rent = rent; _house1 = house1; _house2 = house2; _house3 = house3; _house4 = house4; _hotel = hotel; _housecost = housecost; _mortgage = mortgage; _side = ParseSide(side); }
public PropertyListing(String name, int cost, int rent, int house1, int house2, int house3, int house4, int hotel, int housecost, int mortgage, int loc, int side, string imgLoc, bool isCorner) { _name = name; _cost = cost; _loc = loc; _imgLoc = imgLoc; _isCorner = isCorner; _rent = rent; _house1 = house1; _house2 = house2; _house3 = house3; _house4 = house4; _hotel = hotel; _housecost = housecost; _mortgage = mortgage; _side = ParseSide(side); _isSpecial = true; }
public PropertyListing(String name, int cost, int rent, int house1, int house2, int house3, int house4, int hotel, int housecost, int mortgage, int loc, int side, string imgLoc, bool isCorner) { _name = name; _cost = cost; _loc = loc; _imgLoc = imgLoc; _isCorner = isCorner; _rent = rent; _house1 = house1; _house2 = house2; _house3 = house3; _house4 = house4; _hotel = hotel; _housecost = housecost; _mortgage = mortgage; _side = ParseSide(side); _isSpecial = true; }