private void cb_listaKamer_SelectedIndexChanged(object sender, EventArgs e) { if (Cam != null) { Cam.Stop(); Cam = new Kamera(cb_listaKamer.SelectedIndex); Cam.Start(pb_obrazZkamery); } }
public f_pstryk() { InitializeComponent(); for (int i = 0; i < filters.VideoInputDevices.Count; i++) { cb_listaKamer.Items.Add(filters.VideoInputDevices[i].Name); cb_listaKamer.SelectedIndex = i; } if (filters.VideoInputDevices.Count != 0) { Cam = new Kamera(cb_listaKamer.SelectedIndex); Cam.Start(pb_obrazZkamery); } tx_imieInazwisko.Text = konf.imieInazwisko; tx_notatka.Text = konf.notatka; }