Interaction logic for Webcam.xaml
Inheritance: System.Windows.Controls.UserControl, Animatiable
Exemple #1
0
        /// <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");
        }
Exemple #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="us"></param>
 public Twitter(Webcam us)
 {
     webcamControl = us;
     initializeWorkers();
 }