Beispiel #1
0
        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler for Custom Defined Events                                    //
        ///////////////////////////////////////////////////////////////////////////////
        #region CUSTOMEVENTHANDLER

        /// <summary>
        /// This method raises the <see cref="WebcamAvailable"/>
        /// event by invoking the delegates.
        /// It should be called when the webcam is initialized.
        /// </summary>
        /// <remarks>The <see cref="CaptureModeEventArgs"/> contain
        /// the new initalized <see cref="CaptureMode"/></remarks>
        /// <param name="e">A <see cref="CaptureModeEventArgs"/></param>.
        private void OnWebcamAvailable(CaptureModeEventArgs e)
        {
            if (this.WebcamAvailable != null)
            {
                this.WebcamAvailable(this, e);
            }
        }
Beispiel #2
0
 /// <summary>
 /// The <see cref="OgamaControls.Webcam.WebcamAvailable"/> event handler.
 ///   Updates the UI with the available modes for the user cam.
 /// </summary>
 /// <param name="sender">
 /// Source of the event.
 /// </param>
 /// <param name="e">
 /// A <see cref="CaptureModeEventArgs"/> with the event data.
 /// </param>
 private void WebcamPreviewWebcamAvailable(object sender, CaptureModeEventArgs e)
 {
   // Show user cam by default
   this.spcPanelUserCam.Panel2Collapsed = false;
 }
Beispiel #3
0
    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler for Custom Defined Events                                    //
    ///////////////////////////////////////////////////////////////////////////////
    #region CUSTOMEVENTHANDLER

    /// <summary>
    /// This method raises the <see cref="WebcamAvailable"/> 
    /// event by invoking the delegates.
    /// It should be called when the webcam is initialized.
    /// </summary>
    /// <remarks>The <see cref="CaptureModeEventArgs"/> contain
    /// the new initalized <see cref="CaptureMode"/></remarks>
    /// <param name="e">A <see cref="CaptureModeEventArgs"/></param>.
    private void OnWebcamAvailable(CaptureModeEventArgs e)
    {
      if (this.WebcamAvailable != null)
      {
        this.WebcamAvailable(this, e);
      }
    }