public HouseSellViewModel(House house, HouseRights rights) { Info = new HouseInfoViewModel(house, rights); var currency = Persistent.Countries.GetCountryCurrency(house.Region.CountryID.Value); CurrencySymbol = currency.Symbol; }
public HouseFurnitureListViewModel(House house, IEnumerable <HouseFurniture> furniture, HouseRights houseRights) { Info = new HouseInfoViewModel(house, houseRights); foreach (var f in furniture) { Furnitures.Add(HouseFurnitureViewModelFactory.Create(f, houseRights)); } }
public HouseCreateFurnitureViewModel(House house, HouseRights rights, IEnumerable <FurnitureTypeEnum> unbuiltFurniture) { Info = new HouseInfoViewModel(house, rights); foreach (var f in unbuiltFurniture) { FurnitureForCreate.Add(GetFurnitureForCreate(f)); } }
public HouseBuyCMViewModel(House house, PagingParam pp, IQueryable <MarketOfferModel> offers, HouseRights houseRights) { Info = new HouseInfoViewModel(house, houseRights); Market = new CountryMarketOffersListViewModel( SessionHelper.CurrentEntity, SessionHelper.LoggedCitizen.Region.Country, offers.ToList(), Persistent.Countries.GetAll().ToList(), new List <int>() { (int)ProductTypeEnum.ConstructionMaterials, (int)ProductTypeEnum.UpgradePoints }, pp, 1, (int)ProductTypeEnum.ConstructionMaterials); }
public HouseChestViewModel(House house, Entities.Equipment citizenEquipment, HouseChest chest, HouseRights houseRights) { Info = new HouseInfoViewModel(house, houseRights); CitizenEquipment = new EquipmentViewModel(citizenEquipment); ChestEquipment = new EquipmentViewModel(chest); }
public HouseViewModel(House house, HouseRights houseRights) { Info = new HouseInfoViewModel(house, houseRights); }