예제 #1
0
        /// <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();
        }
예제 #2
0
 private void FillWebcams()
 {
     string[] webcamNames = WebcamHandler.GetWebcamNames();
     cboxWebcams.Items.AddRange(webcamNames);
     if (cboxWebcams.Items.Count > 0)
     {
         cboxWebcams.SelectedIndex = 0;
     }
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     webcamFetch = subCamera.GetComponent <WebcamHandler>();
 }