Exemple #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmEditCamera frmNewCamera = new frmEditCamera(null);

            if (frmNewCamera.ShowDialog(this) == DialogResult.OK)
            {
                m_SelectedCamera = frmNewCamera.Camera.Model;
                ReloadCameras();
            }
        }
Exemple #2
0
        private void btnEditCamera_Click(object sender, EventArgs e)
        {
            VideoCamera camera = cbxSavedCameras.SelectedItem as VideoCamera;

            if (camera != null)
            {
                frmEditCamera frmNewCamera = new frmEditCamera(camera);
                if (frmNewCamera.ShowDialog(this) == DialogResult.OK)
                {
                    m_SelectedCamera = frmNewCamera.Camera.Model;
                    ReloadCameras();
                }
            }
        }