Example #1
0
        /**************** End Opening sesion ****************/
        #endregion

        #region Calling Camera
        /*** Calling camera window **/
        void menuItem_WCamera_Click(object sender, RoutedEventArgs e)
        {   
            // Works with an active task
            if (lv.IsEnabled)
            {
                WCamera camera = new WCamera();
                enabledWebCam = true;
                camera.ParentContext = this;
                camera.Show();
            }
            else
            {
                MessageBox.Show("You need to have an active task to use the camera");
            }
        }
Example #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.WindowCamera = ((GenericVA.WCamera)(target));
     
     #line 7 "..\..\WCamera.xaml"
     this.WindowCamera.Loaded += new System.Windows.RoutedEventHandler(this.WindowCamera_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.webcam1ComboBox = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 3:
     this.webcamPlayer1 = ((CatenaLogic.Windows.Presentation.WebcamPlayer.CapPlayer)(target));
     return;
     case 4:
     this.image1 = ((System.Windows.Controls.Image)(target));
     return;
     case 5:
     
     #line 57 "..\..\WCamera.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnCapture_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 58 "..\..\WCamera.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }