Esempio n. 1
0
        private void Sendtime_Click(object sender, RoutedEventArgs e)
        {
            string catandper = MakeSure.EnsureQues(message, temp_minnum, temp_maxnum, wind_maxnum, humi_minnum, humi_maxnum, visible_minnum);

            TcpSend.SendTimeInform(catandper, iPAddress);
            sendtime.IsEnabled = false;
        }
Esempio n. 2
0
 private void Button_Click(object sender, RoutedEventArgs e)//开启实时定时器
 {
     button.IsEnabled  = false;
     button1.IsEnabled = true;
     timer.Elapsed    += new ElapsedEventHandler(delegate { TcpSend.SendRedData(this, timer); });
     timer.Enabled     = true;
     timer.Interval    = onetime;
     timer.Start();
 }
Esempio n. 3
0
 private void Send_Click(object sender, RoutedEventArgs e)
 {
     TcpSend.SendQuestionSignal(queshour, exduration, rationum, message, onetime, iPAddress);//发送异常信号给诊断和仿真机
     sendtime.IsEnabled = true;
 }