protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
this.downloadButton = FindViewById <Button> (Resource.Id.downloadButton);
this.clickButton = FindViewById <Button> (Resource.Id.clickButton);
this.infoLabel = FindViewById <TextView> (Resource.Id.textView1);
this.imageview = FindViewById <ImageView> (Resource.Id.imageView1);
this.downloadProgress = FindViewById <ProgressBar> (Resource.Id.progressBar);
downloadButton.Click += DownloadAsync;
clickButton.Click += delegate {
clickButton.Text = string.Format("{0} clicks!", count++);
//TODO:Remove the two methods below.
TimeTake.LongMethod1();
TimeTake.LongMethod2();
};
manager = new DownloadManager();
manager.DownloadProgressChanged += HandleDownloadProgressChanged;
}