public void GetData() { SimpleRestService service = new SimpleRestService(); var result = service.GetDataObject(); service.RefObject(result.Result); RefTimestamp refTimestamp = new RefTimestamp(); refTimestamp.RootRefObject = service.RootRefObject; refTimestamp.Timestamp = DateTime.Now.ToString(); RootRefObjects.Add(refTimestamp); Debug.WriteLine(RootRefObjects.Count); }
public void CallExportService() { ExportToExcel export = new ExportToExcel(); ObservableCollection <RefTimestamp> a = new ObservableCollection <RefTimestamp>(); RefTimestamp b = new RefTimestamp(); b.Timestamp = "12:00"; b.RootRefObject.tank1.max = 1; b.RootRefObject.tank1.min = 2; b.RootRefObject.tank1.actual = "3"; a.Add(b); // export.ExportData(a, new List<bool> { true,false}); }
/// <summary> /// internal constructor that allows creation of a sibling stopwatch from older sibling /// </summary> Startwatch(Startwatch sibling, ISibling fakeParentParameter) { _startTimestamp = sibling._stopTimestamp; _stopTimestamp = new RefTimestamp(); }
/// <summary> /// internal constructor that allows creation of a child stopwatch from parent /// </summary> Startwatch(Startwatch parent, IParent fakeParentParameter) { _startTimestamp = parent._startTimestamp; _stopTimestamp = new RefTimestamp(); }
/// <summary> /// private constructor allows creation of Startwatch in stopped / completed state, using system dependent ticks /// </summary> Startwatch(long start, long end) { _startTimestamp = new RefTimestamp(start); _stopTimestamp = new RefTimestamp(end); }
/// <summary> /// private constructor allows creation of Startwatch in started state, using system dependent ticks /// </summary> Startwatch(long start) { _startTimestamp = new RefTimestamp(start); _stopTimestamp = new RefTimestamp(); }
/// <summary> /// Create a started stopwatch /// </summary> public Startwatch() { _stopTimestamp = new RefTimestamp(); _startTimestamp = new RefTimestamp(); Startwatch.QueryPerformanceCounter(out _startTimestamp.Value); }