private void MainWindow_Closing(object sender, CancelEventArgs e) { videoSource.SignalToStop(); try { myConnector.Close(); } catch { } }
private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { isRunning = false; myConectorHub.Close(); }