CustomerEnv.cs 485 B

1234567891011121314151617
  1. using SCADA.CommonLib;
  2. using SCADA_DAQ.Customer.Models;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace SCADA_DAQ.Customer
  9. {
  10. static class CustomerEnv
  11. {
  12. public static CustomerConfig CustomerConfig { get => _confg.Value; }
  13. public static AutoSaveParameterItem<CustomerConfig> _confg { get; set; } = AutoSaveParameterItem.Create("App.CustomerConfig", new CustomerConfig());
  14. }
  15. }