private ItemValueCollection CreateTestCollection()
 {
     ItemValueCollection testCollection = new ItemValueCollection();
     ItemValue testItemValue = new ItemValue();
     testItemValue.ItemID = "SimulatedData.Random";
     testItemValue.Timestamp = DateTime.Now;
     Random rnd = new Random();
     testItemValue.Value = rnd.Next(900000);
     testCollection.Add(testItemValue);
     return testCollection;
 }
 private DateTime UpdateLastTimestamp(ItemValueCollection itemValueCollection)
 {
     int lastIndex = itemValueCollection.Count - 1;
     ItemValue lastItemValue = itemValueCollection[lastIndex];
     return lastItemValue.Timestamp;
 }
Esempio n. 3
0
		public ReportItem()
		{
			m_Values = new ItemValueCollection();
		}
 public ItemWithValues(Item item)
 {
     _item = item;
     _valueCollection = new ItemValueCollection();
 }
 private ItemValueCollection CreateItemValues(DataTable dt)
 {
     ItemValueCollection result = new ItemValueCollection();
     ItemValue newItemValue;
     foreach (DataRow currentRow in dt.Rows) {
         newItemValue = CreateSingleItemValue(currentRow);
         result.Add(newItemValue);
     }
     return result;
 }
 public ItemValueCollectionEventArgs(ItemValueCollection collection)
 {
     Collection = collection;
 }