void GetRemoteRequestCompleted(object sender, DownloadStringCompletedEventArgs e) { if (e.Error == null) { GetResult result = new GetResult(extractVersionFromHeaders(sender as WebClient), e.Result); OnGetCompleted(new DataEventArgs<GetResult>(result)); } else OnGetCompleted(new DataEventArgs<GetResult>(e.Error)); }