Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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});
        }
Ejemplo n.º 3
0
 /// <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();
 }
Ejemplo n.º 4
0
 /// <summary>
 /// internal constructor that allows creation of a child stopwatch from parent
 /// </summary>
 Startwatch(Startwatch parent, IParent fakeParentParameter)
 {
     _startTimestamp = parent._startTimestamp;
     _stopTimestamp  = new RefTimestamp();
 }
Ejemplo n.º 5
0
 /// <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);
 }
Ejemplo n.º 6
0
 /// <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();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Create a started stopwatch
 /// </summary>
 public Startwatch()
 {
     _stopTimestamp  = new RefTimestamp();
     _startTimestamp = new RefTimestamp();
     Startwatch.QueryPerformanceCounter(out _startTimestamp.Value);
 }