Exemplo n.º 1
0
 //removes a loan
 //returns the advertisement for the airline for a specific type
 public AdvertisementType GetAirlineAdvertisement(AdvertisementType.AirlineAdvertisementType type)
 {
     return Advertisements[type];
 }
Exemplo n.º 2
0
 public void SetAirlineAdvertisement(AdvertisementType type)
 {
     if (!Advertisements.ContainsKey(type.Type))
     {
         Advertisements.Add(type.Type, type);
     }
     else
     {
         Advertisements[type.Type] = type;
     }
 }
Exemplo n.º 3
0
 public AirlineAdvertisementMVVM(AdvertisementType.AirlineAdvertisementType type)
 {
     Type = type;
 }
 public static void AddAdvertisementType(AdvertisementType type)
 {
     Advertisements.Add(type);
 }
 /*!returns the advertisement types for a specific type
  */
 public static List<AdvertisementType> GetTypes(AdvertisementType.AirlineAdvertisementType type)
 {
     return Advertisements.FindAll((t => t.Type == type));
 }
 public static AdvertisementType GetType(AdvertisementType.AirlineAdvertisementType type, string name)
 {
     return GetTypes(type).Find((t => t.Name == name));
 }
 public static AdvertisementType GetBasicType(AdvertisementType.AirlineAdvertisementType type)
 {
     return GetTypes(type).Find((t => t.ReputationLevel == 0));
 }