Esempio n. 1
0
        void InitializeClient()
        {
            m_connecting = true;
            while (m_connecting == true)
            {
                try
                {
                    m_client.ConnectStreamingFieldClient(textBox1.Text, 8030, textBox7.Text, textBox6.Text);
                    groupBox3.Enabled   = true;
                    tabControl1.Enabled = true;
                    break;
                }
                catch (Exception err)
                {
                    Thread.Sleep(1000);
                }
            }
            string m_guidForStreamingClient = "02711232ed42119ebacd00a100574918";

            m_client.Register(m_guidForStreamingClient);

            LoadSettings();

            int x = m_client.GetFifoThreshold();

            textBox11.Text = x.ToString();

            TimeSpan t = m_client.GetCopyThreadTimeEvent();

            textBox8.Text = t.ToString();
        }