protected void OnOriginalStreamReady(GetStreamAsyncEventArgs args) { if (this.CreateOriginalStreamCompleted != null) { this.CreateOriginalStreamCompleted(this, args); } }
protected void OnThumbnailStreamReady(GetStreamAsyncEventArgs args) { if (this.CreateThumbnailStreamCompleted != null) { this.CreateThumbnailStreamCompleted(this, args); } }
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); }