private void Stquery() { M2BStateQuery _stqury = new M2BStateQuery(); byte[] sendcmd = _stqury.EnCode(); try { comunication.Getinstance().AddtoSend(sendcmd, (byte)sendcmd.Length); } catch (Exception) { } }
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) { } }
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) { } }