public EncapsulationStage(SwitchDevice @switch, SwitchDevice crswitch, EnlaceDevice enlace, LongmenDevice longmen, params WrapDevice[] wraps) { _switch = @switch; _crswitch = crswitch; _longmen = longmen; _enlace = enlace; _warps = wraps; }
private void bt_write_Read_Click(object sender, EventArgs e) { _serialize = new ProtoClass(); LongmenDevice longmen = new LongmenDevice(port, _serialize); byte data = 0x000;; // longmen.DoRead(int.Parse(this.tb_Write_Port.Text.ToString().Trim()), out data); this.tb_Write_Read_data.Text = null; this.tb_Write_Read_data.Text = data.ToString(); }
private void bt_Write_Click(object sender, EventArgs e) { _serialize = new ProtoClass(); LongmenDevice longmen = new LongmenDevice(port, _serialize); //longmen.DoWrite(int.Parse(this.tb_Write_Port.Text.ToString().Trim()),byte.Parse(this.tb_Write_data.Text.ToString().Trim())); }