コード例 #1
0
		protected void OnOriginalStreamReady(GetStreamAsyncEventArgs args)
		{
			if (this.CreateOriginalStreamCompleted != null)
			{
				this.CreateOriginalStreamCompleted(this, args);
			}
		}
コード例 #2
0
		protected void OnThumbnailStreamReady(GetStreamAsyncEventArgs args)
		{
			if (this.CreateThumbnailStreamCompleted != null)
			{
				this.CreateThumbnailStreamCompleted(this, args);
			}
		}
コード例 #3
0
		private void thumbnailClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
		{
			((WebClient) sender).OpenReadCompleted -= new OpenReadCompletedEventHandler(this.thumbnailClient_OpenReadCompleted);
			GetStreamAsyncEventArgs args = new GetStreamAsyncEventArgs(e.Result, e.Error, e.Cancelled, e.UserState);
			base.OnThumbnailStreamReady(args);
		}