protected void InitializeComponents() { this.TV = new SerialControl.PioneerTv(TelevisionPort); this.PrePro = new SerialControl.EmotivaPrePro(PreProPort); this.Oppo = new SerialControl.OppoBdp83(OppoPort); this.Ir = new IrControl.UsbUirt(); this.Oppo.OnDiscTypeUpdate += OppoOnDiscTypeUpdate; this.Oppo.OnAudioTypeUpdate += OppoOnAudioUpdate; this.Oppo.OnPowerUpdate += OppoOnPowerUpdate; this.Ir.OnDvrOk += WatchDvr; this.Ir.OnDvrChannelDown += WatchDvr; this.Ir.OnDvrChannelUp += WatchDvr; this.Ir.OnDvrAv += DvrOnAv; this.Ir.OnOppoOk += OppoOnOk; }
private void comboBoxPorts_SelectedIndexChanged(object sender, EventArgs e) { String port = comboBoxPorts.SelectedItem.ToString(); _processor = new EmotivaPrePro(port); //_port = _processor.GetSerialPort(); }