예제 #1
0
 public Advert(string title, string brand, string model, string version, int year, float km, FuelTypeEnum fu, GeoLocalization l, string owner, float price
     , bool nego, DateTime valDateTime, Characteristics c, String description = "N/A")
     : this()
 {
     Id = _id++;
     Title = title;
     Brand = brand;
     Model = model;
     Version = version;
     Year = year;
     Kilometers = km;
     FuelType = fu;
     Description = description;
     Local = l;
     AdvertiseOwner = owner;
     Price = price;
     Negotiable = nego;
     ValidUntil = valDateTime;
     Characteristics = c;
 }
예제 #2
0
 //private static DateTime GetRandomDay()
 //{
 //    DateTime start = new DateTime(1900, 1, 1);
 //    int range = (DateTime.Today - start).Days;
 //    return start.AddDays(new Random().Next(range));
 //}
 public void addStandInformation(String fullAddress, String standLink)
 {
     if (!String.IsNullOrEmpty(standLink))
         StandLink = standLink;
     GeoLocalization = new GeoLocalization(fullAddress, District);
     IsStand = true;
 }