123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System.Windows;
- namespace OpenSEMI.ClientBase.IO
- {
- public class IOItem : DependencyObject
- {
- public int Index
- {
- get;
- set;
- }
- public string Name
- {
- get;
- set;
- }
- public string Address
- {
- get;
- set;
- }
- public string Key
- {
- get;
- set;
- }
- }
- public class IOItem<T> : IOItem
- {
- public static DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(T), typeof(IOItem<T>));
- public T Value
- {
- get
- {
- return (T)GetValue(ValueProperty);
- }
- set
- {
- SetValue(ValueProperty, value);
- }
- }
- }
- }
|