c# - What is this event? -


Can anyone explain what this C # code is doing?

  // Launch the camera capture when the user touches the screen. Mouse-left buttonout = = (S, E) => New Camera CaptureTask () Show (); // When a task chooserListener.ChooserCompleted + = (s, e) = & gt; This completes the stable event. {// some code here};  

I know that camerachatcher Task is a class and its public method is showing () . What kind of event is this? (s, e)

When adding event handlers, - Can do this in different ways:

Old-fashioned Verbose Routes:

  this.MouseLeftButtonUp + = Handle_MouseLeftButtonUp; Zero Handle_MouseLeftButtonUp (Object S, MouseButtonEventArgs e) {New CameraCaptureTask () Show (); }  

one:

  this.MouseLeftButtonUp + = Representative (object s, mousebutton avenues ARGs e) {new camera capturetask () Show (); }  

Or, using one:

  this.MouseLeftButtonUp + = (s, e) => New Camera CaptureTask () Show ();  

Imagine the last one using a representative as a 'compact form'. You can also use braces:

  this.MouseLeftButtonUp + = (s, e) => {New Camera Capture Task () Show (); }  

Comments