Exemple #1
0
		private void OnReceiveProgress(int bytesReceived)
		{
			if (this.ReceiveProgress != null)
			{
				ProgressEventArgs progressEventArg = new ProgressEventArgs(bytesReceived);
				this.ReceiveProgress.BeginInvoke(this, progressEventArg, new AsyncCallback(this.AsyncCallback), null);
			}
		}
Exemple #2
0
		private void theDevice_ReceiveProgress(object sender, ProgressEventArgs e)
		{
			if (this.ReceiveProgress != null)
			{
				this.ReceiveProgress(this, e);
			}
		}