GdPicture.NET Reference Guide
TransferEnded Event (GdViewer)
Example 





GdPicture14.WPF Namespace > GdViewer Class : TransferEnded Event
This event is raised right after the latest asynchronous web transfer has been finished when loading or saving a file using HTTP or FTP transfer.

The event makes use of bubble routing strategy. Please check the corresponded GdViewer.TransferEndedEventArgs for given parameters.

Syntax
'Declaration
 
Public Event TransferEnded As GdViewer.TransferEndedHandler
public event GdViewer.TransferEndedHandler TransferEnded
public event TransferEnded: GdViewer.TransferEndedHandler; 
In JScript, you can handle the events defined by another class, but you cannot define your own.
public: __event GdViewer.TransferEndedHandler* TransferEnded
public:
event GdViewer.TransferEndedHandler^ TransferEnded
Event Data

The event handler receives an argument of type GdViewer.TransferEndedEventArgs containing data related to this event. The following GdViewer.TransferEndedEventArgs properties provide information specific to this event.

PropertyDescription
Specifies the type of a transfer operation. The parameter returns true, if the latest transfer was a download, otherwise it returns false, if it was an upload.  
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
(Inherited from System.Windows.RoutedEventArgs)
A member of the GdPictureStatus enumeration. The resulting status of the processed operation.  
Example
How to utilize this event in your GdViewer control.
'We assume that the GdViewer1 control has been properly integrated
'and the TransferEnded event has been properly added.
            
'Define the event.
Sub GdViewer1_TransferEnded(ByVal sender As Object, ByVal e As GdPicture14.WPF.GdViewer.TransferEndedEventArgs)
    'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated
//and the TransferEnded event has been properly added.
            
//Define the event.
void GdViewer1_TransferEnded(object sender, GdPicture14.WPF.GdViewer.TransferEndedEventArgs e)
{
    //Do your stuff here.
}
See Also