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