aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Video/PlayerProgressEventArgs.cs
blob: 33587eda8839b4174fc4b15a0b72ffc4e0aa4a52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Video.DirectShow.EventArguments
{
    public class PlayerProgressEventArgs : EventArgs
    {
        public PlayerProgressEventArgs(int currentFrame, int totalFrames, double currentTime, double totalTime)
        {
            CurrentFrame = currentFrame;
            TotalFrames = totalFrames;
            CurrentTime = currentTime;
            TotalTime = totalTime;
        }

        public int CurrentFrame { get; private set; }
        public int TotalFrames { get; private set; }
        public double CurrentTime { get; private set; }
        public double TotalTime { get; private set; }
    }
}
var response3 = stubManager.Run<StubValveResponse>("StubValveRequest" ,6, 10, false); var response2 = stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,3,0); //Thread.Sleep(10); //var response1 = stubManager.Run<StubMotorMovResponse>("StubMotorMovRequest" ,12, false, 150); // Request ---- // UInt32 : Address // Response ---- // UInt32 : Address // UInt32 : Value // String : Status // UInt32 : StatusWord /*{ var response = stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,14, false, 20); Thread.Sleep(600); var response1 = stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,14, true, 20); Thread.Sleep(600); } //var response1 = stubManager.Run<StubMotorStatusResponse>("StubMotorStatusRequest" ,14, true); //Thread.Sleep(1000); // var response = stubManager.Run<StubMotorRunResponse>("StubMotorRunRequest" ,24, false, 20); // Thread.Sleep(700); var response2 = stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,15, 0); var response4 = stubManager.Run<StubMotorStopResponse>("StubMotorStopRequest" ,14, 0);*/ // Request ---- // UInt32 : Address // UInt32 : Value // Response ---- // String : Status // UInt32 : StatusWord //var response = stubManager.Run<StubFpgaWriteRegResponse>("StubFpgaWriteRegRequest" ,0x600008e2, 0); // Request ---- // UInt32 : Address // Response ---- // UInt32 : Address // UInt32 : Value // String : Status // UInt32 : StatusWord //var response1 = stubManager.Run<StubFpgaReadRegResponse>("StubFpgaReadRegRequest" ,0x600008e2); }