Example #1
0
 public TariffsElectricPower(TariffsElectricPower extentedItem)
 {
     Id        = extentedItem.Id;
     Name      = extentedItem.Name;
     Less150kW = extentedItem.Less150kW;
     Ower150kW = extentedItem.Ower150kW;
     Ower800kW = extentedItem.Ower800kW;
 }
Example #2
0
 public void Update(TariffsElectricPower value)
 {
     Less150kW = value.Less150kW;
     Ower150kW = value.Ower150kW;
     Ower800kW = value.Ower800kW;
     CrossSettings.Current.AddOrUpdateValue("Less150kW", value.Less150kW);
     CrossSettings.Current.AddOrUpdateValue("Ower150kW", value.Ower150kW);
     CrossSettings.Current.AddOrUpdateValue("Ower800kW", value.Ower800kW);
 }
Example #3
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();
 }
Example #4
0
 public void ChangeElectricPower(TariffsElectricPower value)
 {
     ElectricPower.Update(value);
 }