public OptomaBeamerSetup(IAuto3D device) { InitializeComponent(); if (!(device is OptomaBeamer)) throw new Exception("Auto3D: Device is no Optoma Beamer"); _device = (OptomaBeamer)device; comboBoxPort.Items.Add("None"); comboBoxPort.Items.AddRange(SerialPort.GetPortNames()); }
public OptomaBeamerSetup(IAuto3D device) { InitializeComponent(); if (!(device is OptomaBeamer)) { throw new Exception("Auto3D: Device is no Optoma Beamer"); } _device = (OptomaBeamer)device; comboBoxPort.Items.Add("None"); comboBoxPort.Items.AddRange(SerialPort.GetPortNames()); }