public PropertyListViewItem(PropertyInfo property)
        {
            this.wrappedProperty = new WrappedProperty(property);
            this.Tag             = this.wrappedProperty;

            this.Text = wrappedProperty.Property.Name;
            this.SubItems.Add(wrappedProperty.Get.ToString());
            this.SubItems.Add(wrappedProperty.Set.ToString());
            this.SubItems.Add(wrappedProperty.Accessibility.ToString());
            this.SubItems.Add(wrappedProperty.Virtual.ToString());
            this.SubItems.Add(wrappedProperty.Interface);

            this.wrappedProperty.GetChanged           += this.OnGetChanged;
            this.wrappedProperty.SetChanged           += this.OnSetChanged;
            this.wrappedProperty.AccessibilityChanged += this.OnAccessibilityChanged;
            this.wrappedProperty.VirtualChanged       += this.OnVirtualChanged;
            this.wrappedProperty.InterfaceChanged     += this.OnInterfaceChanged;
        }
Example #2
0
 public DeviceStateWrap(short device_id)
 {
     changes_to_commit = ChangesToCommit;
     id                         = device_id;
     qTreeState                 = new WrappedProperty <DeviceTypes.QTreeStates>("QTreeState");
     type                       = new WrappedProperty <DeviceTypes.Types>("Type");
     storageMediaFailure        = new WrappedProperty <bool>("HardwareEmergencyMode");
     transientDeviceNetworkPath = new WrappedProperty <string>("TransientDeviceNetworkPath");
     state                      = new WrappedProperty <DeviceState.States>("ServiceState");
     lastLoginGPSPoint          = new WrappedProperty <GPSPoint>("LastLoginGPSPoint");
     lastKnownGPSPoint          = new WrappedProperty <GPSPoint>("LastKnownGPSPoint");
     lastReceivedTrackingData   = new WrappedProperty <DateTime>("LastReceivedTrackingData");
     lastReceivedEventData      = new WrappedProperty <DateTime>("LastReceivedEventData");
     lastLogin                  = new WrappedProperty <DateTime>("LastLogin");
     clockSlice                 = new WrappedProperty <TimeSpan>("ClockSlice");
     qtreeRevision              = new WrappedProperty <int>("QTreeRevision");
     flashCounter               = new WrappedCounter("FlashCounter");
     crapReceivedCounter        = new WrappedCounter("CrapReceivedCounter");
     firmwareVersion            = new WrappedProperty <string>("FirmwareVersion");
     xbeeFirmware               = new WrappedProperty <string>("XBeeFirmware");
     haveDisplay                = new WrappedProperty <bool>("HaveDisplay");
 }
Example #3
0
 private static void EnqueueProperty <FTYPE>(DeviceStatePropertiesQueue queue, WrappedProperty <FTYPE> property)
 {
     if (property.DeviceStateProperty.PendingCommits <= 0 || !property.Initialized)
     {
         return;
     }
     queue.Enqueue(property.DeviceStateProperty);
 }