private static void LoadEstateProperties(IEstate estate, string[] cmdArgs) { estate.Name = cmdArgs[1]; estate.Area = double.Parse(cmdArgs[2]); estate.Location = cmdArgs[3]; estate.IsFurnished = bool.Parse(cmdArgs[4]); }
public void AddEstate(IEstate estate) { if (estate == null) { throw new ArgumentNullException(); } this.estates.Add(estate); }
private void AddEstate(IEstate estate) { this.Estates.Add(estate); if (this.uniqueEstateNames.Contains(estate.Name)) { throw new ArgumentException("Duplicated estate name: " + estate.Name); } this.uniqueEstateNames.Add(estate.Name); }
public static IEstate CreateEstate(EstateType type) { IEstate estate = null; switch (type) { case EstateType.Apartment: estate = new Apartment(); break; case EstateType.Office: estate = new Office(); break; case EstateType.Garage: estate = new Garage(); break; case EstateType.House: estate = new House(); break; } return(estate); }
public Offer(OfferType initType, IEstate initEstate) { this.Type = initType; this.Estate = initEstate; }
public Rent(IEstate estate, decimal pricePerMonth) : base(OfferType.Rent, estate) { this.PricePerMonth = pricePerMonth; }
public RentOffer(OfferType type, IEstate estate,decimal Price):base(OfferType.Rent,estate) { this.PricePerMonth = Price; }
public EstateController() { Estate = new Estate(); }
public SaleOffer(OfferType initType, IEstate initEstate, decimal price) : base(initType, initEstate) { this.Price = price; }
public RentOffer(IEstate estate = null, decimal pricePerMonth = 0M) : base(OfferType.Rent, estate) { this.pricePerMonth = pricePerMonth; }
public SaleOffer(OfferType type, IEstate estate, decimal price) : base(OfferType.Sale, estate) { this.Price = price; }
public RentOffer(OfferType type, IEstate estate, decimal Price) : base(OfferType.Rent, estate) { this.PricePerMonth = Price; }
//-------------------------------------------------------------------------------------[] private static void RegisterOwnership(IEstate golem) { OwnershipManager.Instance.RegisterOwnership(golem.Owner, golem); }
public CDCController() { CDC = new CDC(); Estate = new Estate(); }
public Offer(OfferType type, IEstate estate) { this.Type = type; this.Estate = estate; }
public SaleOffer(IEstate estate = null, decimal price = 0M) : base(OfferType.Sale, estate) { this.price = price; }
public Sale(IEstate estate, decimal price) : base(OfferType.Sale, estate) { this.Price = price; }
protected Offer(OfferType type, IEstate estate) { this.Type = type; this.Estate = estate; }
protected Offer(IEstate estate,decimal price) { this.Estate = estate; this.Price = price; }
public RentOffer(OfferType type, IEstate estate, decimal pricePerMonth) : base(type, estate) { this.PricePerMonth = pricePerMonth; }
public RentOffer(OfferType initType, IEstate initEstate, decimal pricePerMonth) : base(initType, initEstate) { this.PricePerMonth = pricePerMonth; }
public SaleOffer(OfferType type, IEstate estate, decimal price) : base(type, estate) { this.Price = price; }
public Offer(IEstate estate = null) { this.estate = estate; }