TestItem.cs 779 B

1234567891011121314151617
  1. using qmonlib.Attributes;
  2. namespace qmonlib.Test
  3. {
  4. [MonitoredClass(Caption = "Person", Description = "Simple personal info", ViewType = MonItemGeneral.MonViewType.List)]
  5. public class TestItem
  6. {
  7. [MonitoredPropertyKey(KeyOrder = 1)]
  8. [MonitoredProperty(Name = "FirstName", Label="First Name", Description = "First name of the person", Order = 1)]
  9. public string FirstName { get; set; }
  10. [MonitoredPropertyKey(KeyOrder = 0)]
  11. [MonitoredProperty(Name = "LastName", Label="Last Name", Description = "Last name of the person", Order = 0)]
  12. public string LastName { get; set; }
  13. [MonitoredProperty(Name = "Age", Description = "Age of the person", Order = 2)]
  14. public int Age { get; set;}
  15. }
  16. }