/// <summary> /// This method get called when the Camera button has been clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void openWebcam(Object sender, RoutedEventArgs e) { try { (Window.GetWindow(this) as TopWindow).ResetTimer(); } catch (NullReferenceException) { } Webcam webcam = new Webcam(); _topLevelPage.setContent(webcam); _topLevelPage.setSubtitle("Support Us On Twitter"); }
/// <summary> /// Constructor /// </summary> /// <param name="us"></param> public Twitter(Webcam us) { webcamControl = us; initializeWorkers(); }