IParameter.cs 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WingCloudServer.GeneralDocTools.Model.Parameters
  7. {
  8. /// <summary>
  9. /// Parameters interface, different type can implement it
  10. /// </summary>
  11. public interface IParameter
  12. {
  13. /// <summary>
  14. /// parameter name
  15. /// </summary>
  16. string Name { get; set; }
  17. /// <summary>
  18. /// parameter section
  19. /// </summary>
  20. string Section { get; set; }
  21. /// <summary>
  22. /// parameter value changed state
  23. /// </summary>
  24. bool IsChanged { get; }
  25. /// <summary>
  26. /// change initial value
  27. /// </summary>
  28. void ChangeInitialValue();
  29. void ChangeSavedValue();
  30. /// <summary>
  31. /// Load user setting value
  32. /// </summary>
  33. /// <param name="value">User setting value.</param>
  34. void ChangeParameterValue(object value);
  35. }
  36. }