Пример #1
0
 public FrmMaintainCamera(Employees.FrmMaintainEmployee pic)
 {
     InitializeComponent();
     {
         VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);
         foreach (FilterInfo VideoCaptureDevice in VideoCaptureDevices)
         {
             comboBox1.Items.Add(VideoCaptureDevice.Name);
         }
         comboBox1.SelectedIndex = 0;
     }
     this.pic = pic;
 }
Пример #2
0
        private void btnMaintain_Click(object sender, EventArgs e)
        {
            FrmMaintainEmployee mEmployee = new FrmMaintainEmployee(Convert.ToInt32(dgvEmployees.CurrentRow.Cells[0].Value));

            mEmployee.ShowDialog();
        }