Interaction logic for Webcam.xaml
Наследование: System.Windows.Controls.UserControl, Animatiable
Пример #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");
        }
Пример #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="us"></param>
 public Twitter(Webcam us)
 {
     webcamControl = us;
     initializeWorkers();
 }