private void stnStart_Click(object sender, EventArgs e) { webcam.Start(); dekodirao = false; BarCodeDetectTimer.Start(); lblStatus.Text = "Pokrenuta kamera"; }
private void button1_Click(object sender, EventArgs e) { try { ((CaptureDevice)cboDevices.SelectedItem).Attach(pictureBox1); BarCodeDetectTimer.Start(); } catch (Exception) { statusStrip1.Text = "Morate odabrati uređaj iz liste."; } }