using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CowainHmi.S1
{
    public partial class DlgS1哭脸 : Form

    {
        int survey = 0;

        public DlgS1哭脸()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            survey = PCHMI.RT.GET_INT16(0, "DB9102.20");
            if (survey == 10)
            {
                Thread.Sleep(5000);

                this.Close();

                PCHMI.RT.SEND_INT16(0, "DB9102.20", 0);
            }
        }
    }
}
