MonItemGeneral.cs 877 B

123456789101112131415161718192021222324252627282930313233
  1. using System.Reflection;
  2. namespace qmonlib
  3. {
  4. [Serializable]
  5. public class MonItemGeneral
  6. {
  7. public string InstanceIdentifier { get; set; }
  8. public string Caption { get; set; }
  9. public string Description { get; set; }
  10. public MonViewType ViewType { get; set; }
  11. public List<ItemDescriptor> Items { get; set; } = new List<ItemDescriptor>();
  12. public class ItemDescriptor
  13. {
  14. public string Name { get; set; }
  15. public string TypeName { get; set; }
  16. public string Label { get; set; }
  17. public string Description { get; set; }
  18. public int Order { get; set; }
  19. [NonSerialized] public PropertyInfo? _propertyInfo;
  20. }
  21. public enum MonViewType
  22. {
  23. Item,
  24. List
  25. }
  26. }
  27. }