예제 #1
0
 public Tariffs()
 {
     Gas = new Tariff()
     {
         Id    = ItemsType.NaturalGas,
         Name  = "Газ",
         Value = CrossSettings.Current.GetValueOrDefault("Gas", 2.367)
     };
     Water = new Tariff()
     {
         Id    = ItemsType.Water,
         Name  = "Вода",
         Value = CrossSettings.Current.GetValueOrDefault("Water", 21.55)
     };
     HotWater = new Tariff()
     {
         Id    = ItemsType.HotWater,
         Name  = "Горячая вода",
         Value = CrossSettings.Current.GetValueOrDefault("HotWater", 35.16)
     };
     ElectricPower = new TariffsElectricPower();
 }
예제 #2
0
 public Tariff(Tariff extentedItem)
 {
     Id    = extentedItem.Id;
     Name  = extentedItem.Name;
     Value = extentedItem.Value;
 }