public DataItemAttacher(IAttachable <T> target, DataItemClient <T> source)
        {
            this.source = source;
            this.buffer = new AttachBuffer <T>(target, source.Name);

            source.DataValueAdded += source_DataValueAdded;
        }
Example #2
0
        public DataItemBuffer(DataItemClient <T> dataItem)
        {
            this.dataItem = dataItem;

            if (Services.RunControlService != null)
            {
                Services.RunControlService.RenderCycle += RunControlService_RenderCycle;
            }

            lastValue = dataItem.CurrentValue;
        }
 public BasicLabelAttacher(Label target, DataItemClient <T> dataItem)
 {
     this.target   = target;
     this.attacher = new DataItemAttacher <T>(this, dataItem);
 }
 public CallbackAttacher(DataItemClient <T> source, SetValueHandler callback)
 {
     this.callback = callback;
     this.attacher = new DataItemAttacher <T>(this, source);
 }
 public VehicleStateService(string name, DataItemClient <double> headingDataItem, DataItemClient <Coordinates> locationDataItem)
 {
     this.name             = name;
     this.HeadingDataItem  = headingDataItem;
     this.LocationDataItem = locationDataItem;
 }
 public VehicleStateService(string name, DataItemClient<double> headingDataItem, DataItemClient<Coordinates> locationDataItem)
 {
     this.name = name;
     this.HeadingDataItem = headingDataItem;
     this.LocationDataItem = locationDataItem;
 }
 public DoubleDataItemAdapter(DataItemClient <double> dataItem)
 {
     this.dataItem            = dataItem;
     dataItem.DataValueAdded += dataItem_DataValueAdded;
 }
 public ConvertDataItemAdapter(DataItemClient <T> dataItem)
 {
     this.dataItem            = dataItem;
     dataItem.DataValueAdded += dataItem_DataValueAdded;
 }