/// <summary> /// Initializes a new instance of the <see cref="FrmWebcam"/> class using the given client. /// </summary> /// <param name="client">The client used for the webcam form.</param> public FrmWebcam(Client client) { _connectClient = client; _webcamHandler = new WebcamHandler(client); RegisterMessageHandler(); InitializeComponent(); }
private void FillWebcams() { string[] webcamNames = WebcamHandler.GetWebcamNames(); cboxWebcams.Items.AddRange(webcamNames); if (cboxWebcams.Items.Count > 0) { cboxWebcams.SelectedIndex = 0; } }
// Start is called before the first frame update void Start() { webcamFetch = subCamera.GetComponent <WebcamHandler>(); }