Esempio n. 1
0
        public StreamData(HoloToolkit.Sharing.ProfilerStream newStream, string remoteName)
        {
            this.remoteSystemName = remoteName;

            this.frames = new ObservableCollection <FrameData>();
            this.logs   = new ObservableCollection <LogData>();

            this.adapter = new HoloToolkit.Sharing.ProfilerStreamAdapter();
            this.adapter.ConnectedEvent     += OnConnected;
            this.adapter.ConnectFailedEvent += OnConnectFailed;
            this.adapter.DisconnectedEvent  += OnDisconnected;
            this.adapter.ReceiveFrameEvent  += OnReceiveProfileFrame;

            this.stream = newStream;
            this.stream.AddListener(this.adapter);
            this.stream.Connect();
        }
Esempio n. 2
0
        public StreamData(HoloToolkit.Sharing.ProfilerStream newStream, string remoteName)
        {
            this.remoteSystemName = remoteName;

            this.frames = new ObservableCollection<FrameData>();
            this.logs = new ObservableCollection<LogData>();

            this.adapter = new HoloToolkit.Sharing.ProfilerStreamAdapter();
            this.adapter.ConnectedEvent += OnConnected;
            this.adapter.ConnectFailedEvent += OnConnectFailed;
            this.adapter.DisconnectedEvent += OnDisconnected;
            this.adapter.ReceiveFrameEvent += OnReceiveProfileFrame;

            this.stream = newStream;
            this.stream.AddListener(this.adapter);
            this.stream.Connect();
        }