Esempio n. 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (m_client.IsConnected == false)
            {
                MessageBox.Show("You are not connected to streaming field server");
                return;
            }
            if (textBox14.Text == string.Empty)
            {
                MessageBox.Show("Operator user name was not supplied");
                return;
            }
            m_client.SetWatsonRunning(checkBox7.Checked);
            string res = m_client.StartWatch(textBox2.Text, "*.bin", true, textBox14.Text);

            string[] s = res.Split(new Char[] { ',' });
            if (s[0] == "start watch ok on path")
            {
                button5.ForeColor = Color.Green;
                button6.ForeColor = Color.Gray;
            }
            else
            {
                button6.ForeColor = Color.Gray;
                MessageBox.Show(res);
            }
        }