Exemple #1
0
        /// <summary>
        /// 停止采集按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            ScadaRealTimeData scada = ScadaRealTimeData.getScadaRealTimeData();

            scada.Stop();
            textBox1.Text = "stop\r\n";
        }
Exemple #2
0
        public QueryOpt()
        {
            InitializeComponent();
            ScadaRealTimeData scada = ScadaRealTimeData.getScadaRealTimeData();

            scada.errorLog = (arg) =>
            {
                this.Invoke(new Action(() =>
                {
                    textBox3.Text += arg + "\r\n";
                }));
            };
        }
Exemple #3
0
        /// <summary>
        /// 开始采集按钮事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            ScadaRealTimeData scada = ScadaRealTimeData.getScadaRealTimeData();

            scada.refreshtxt = (arg) =>
            {
                this.Invoke(new Action(() =>
                {
                    textBox1.Text += arg + "\r\n";
                }));
            };
            scada.Start();
            textBox1.Text = "start\r\n";
        }