Пример #1
0
        private void Stquery()
        {
            M2BStateQuery _stqury = new M2BStateQuery();

            byte[] sendcmd = _stqury.EnCode();
            try
            {
                comunication.Getinstance().AddtoSend(sendcmd, (byte)sendcmd.Length);
            }
            catch (Exception)
            {
            }
        }
Пример #2
0
        void Tmr_Tick(object sender, EventArgs e)
        {
            M2BStateQuery _stqury = new M2BStateQuery();

            byte[] sendcmd = _stqury.EnCode();
            try
            {
                lock (this)
                {
                    comunication.Getinstance().AddtoSend(sendcmd, (byte)sendcmd.Length);
                }
            }
            catch (Exception)
            {
            }
        }
Пример #3
0
        void Tmr_Tick(object sender, EventArgs e)
        {
            tb_crt_temp.Text = this._MachineInfo.Temp_water.ToString();
            M2BStateQuery _stqury = new M2BStateQuery();

            byte[] sendcmd = _stqury.EnCode();
            try
            {
                lock (this)
                {
                    comunication.Getinstance().AddtoSend(sendcmd, (byte)sendcmd.Length);
                }
            }
            catch (Exception)
            {
            }
        }