AOItem.cs 740 B

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Windows;
  2. namespace OpenSEMI.ClientBase.IO
  3. {
  4. public class AOItem : IOItem<short>
  5. {
  6. public static readonly DependencyProperty NewValueProperty = DependencyProperty.Register("NewValue", typeof(short), typeof(AOItem), new PropertyMetadata((short)0));
  7. public static readonly DependencyProperty TextSavedProperty = DependencyProperty.Register("TextSaved", typeof(bool), typeof(AOItem), new PropertyMetadata(true));
  8. public short NewValue
  9. {
  10. get
  11. {
  12. return (short)GetValue(NewValueProperty);
  13. }
  14. set
  15. {
  16. SetValue(NewValueProperty, value);
  17. }
  18. }
  19. public bool TextSaved
  20. {
  21. get
  22. {
  23. return (bool)GetValue(TextSavedProperty);
  24. }
  25. set
  26. {
  27. SetValue(TextSavedProperty, value);
  28. }
  29. }
  30. }
  31. }