protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.Main);

            progressBar              = FindViewById <ProgressBar>(Resource.Id.prgProgress);
            statusTextView           = FindViewById <TextView>(Resource.Id.lblStatus);
            progressFractionTextView = FindViewById <TextView>(Resource.Id.lblProgress);
            dashboardView            = FindViewById(Resource.Id.dashboard);
            useCellDataView          = FindViewById(Resource.Id.approve);
            pauseButton              = FindViewById <Button>(Resource.Id.btnPause);
            openWiFiSettingsButton   = FindViewById <Button>(Resource.Id.btnWifi);
            resumeOnCellDataButton   = FindViewById <Button>(Resource.Id.btnResumeCell);

            pauseButton.Click += delegate
            {
                if (isPaused)
                {
                    downloaderService.RequestContinueDownload();
                }
                else
                {
                    downloaderService.RequestPauseDownload();
                }
                UpdatePauseButton(!isPaused);
            };
            openWiFiSettingsButton.Click += delegate
            {
                StartActivity(new Intent(Settings.ActionWifiSettings));
            };
            resumeOnCellDataButton.Click += delegate
            {
                downloaderService.SetDownloadFlags(DownloaderServiceFlags.DownloadOverCellular);
                downloaderService.RequestContinueDownload();
                useCellDataView.Visibility = ViewStates.Gone;
            };

            dashboardView.Visibility   = ViewStates.Gone;
            useCellDataView.Visibility = ViewStates.Gone;

            var delivered = AreExpansionFilesDelivered();

            if (delivered)
            {
                statusTextView.Text = "Download Complete!";
            }
            else if (!GetExpansionFiles())
            {
                downloaderServiceConnection = DownloaderClientMarshaller.CreateStub(this, typeof(SampleDownloaderService));
            }
        }
 /// <summary>
 /// The on event handler.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="args">
 /// The args.
 /// </param>
 private void OnEventHandler(object sender, EventArgs args)
 {
     _downloaderService?.SetDownloadFlags(DownloaderServiceFlags.DownloadOverCellular);
     _downloaderService?.RequestContinueDownload();
     _useCellDataView.Visibility = ViewStates.Gone;
 }