public void ConnectCamera3_Click(object sender, EventArgs e)
        {
            var discoveryDlg = new DiscoveryForm();

            if (discoveryDlg.ShowDialog() == DialogResult.OK)
            {
                _manager.ConnectCamera(discoveryDlg.SelectedCameraDevice, 2);
                ConnectCamera3.Enabled    = false;
                DisconnectCamera3.Enabled = true;
                SettingsCamera3.Enabled   = true;
            }
        }
Exemple #2
0
        private void connectCamera2_Click(object sender, EventArgs e)
        {
            var discoveryDlg = new DiscoveryForm();

            if (discoveryDlg.ShowDialog() == DialogResult.OK)
            {
                _manager.ConnectCamera(discoveryDlg.SelectedCameraDevice, 1);
                connectCamera2.Enabled    = false;
                disconnectCamera2.Enabled = true;
                // startCamera2.Enabled = true;
                settingsCamera2.Enabled = true;
            }
        }
Exemple #3
0
        private void connectCamera1_Click(object sender, EventArgs e)
        {
            var discoveryDlg = new DiscoveryForm();

            if (discoveryDlg.ShowDialog() == DialogResult.OK)
            {
                _manager.ConnectCamera(discoveryDlg.SelectedCameraDevice, 0);
                connectCamera1.Enabled    = false;
                disconnectCamera1.Enabled = true;
                startCamera1.Enabled      = true;
                settingsCamera1.Enabled   = true;
                metecCameraTemperatureControl1.Initialize(_manager.Camera(0));
                metecCameraFocusControl1.Initialize(_manager.Camera(0));
            }
        }