public Device() { com = ComFactory.MakeDefault(); com.setOnRead(onComRead); EventBulletin.Subscribe(EventBulletin.Event.CLOSE, (o, e) => { onClose(); }); }