Exemplo n.º 1
0
        public Window1()
        {
            InitializeComponent();

            // Test code
            m_visClient = VisualizerClient.CreateClient(new System.Net.IPEndPoint(IPAddress.Parse("192.168.0.103"), 4530));
            m_visClient.ConnectionStateChanged += new EventHandler(client_ConnectionStateChanged);
            m_visClient.EventReceived          += new EventHandler <MARC.EHRS.Visualization.Core.VisualizationEventArgs>(m_visClient_EventReceived);
            m_playbackTimer.Elapsed            += new ElapsedEventHandler(m_playbackTimer_Elapsed);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Create the visualizer client
        /// </summary>
        public VisualizerClient CreateClient(Dispatcher owner)
        {
            EndPoint  ep = null;
            IPAddress ip = null;

            if (IPAddress.TryParse(Address, out ip))
            {
                ep = new IPEndPoint(ip, Port);
            }
            else
            {
                ep = new DnsEndPoint(Address, Port);
            }
            return(VisualizerClient.CreateClient(ep, owner));
        }