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; }
private void btnMaintain_Click(object sender, EventArgs e) { FrmMaintainEmployee mEmployee = new FrmMaintainEmployee(Convert.ToInt32(dgvEmployees.CurrentRow.Cells[0].Value)); mEmployee.ShowDialog(); }