03-04-14, 04:43 PM
كود :
' The class FileDownloadProgressChangedEventArgs defines the arguments used by
' the FileDownloadProgressChanged event of FileDownloader.
Public Class FileDownloadProgressChangedEventArgs
Inherits EventArgs
Private _receivedSize As Int64
Private _totalSize As Int64
Private _downloadSpeed As Integer
Public Sub New(ByVal receivedSize As Int64, ByVal totalSize As Int64, ByVal downloadSpeed As Integer)
Me.ReceivedSize = receivedSize
Me.TotalSize = totalSize
Me.DownloadSpeed = downloadSpeed
End Sub
Public Property ReceivedSize() As Int64
Get
Return _receivedSize
End Get
Private Set(ByVal value As Int64)
_receivedSize = value
End Set
End Property
Public Property TotalSize() As Int64
Get
Return _totalSize
End Get
Private Set(ByVal value As Int64)
_totalSize = value
End Set
End Property
Public Property DownloadSpeed() As Integer
Get
Return _downloadSpeed
End Get
Private Set(ByVal value As Integer)
_downloadSpeed = value
End Set
End Property
End Class
