private void DownloadButtonOnClick(object sender, EventArgs eventArgs) { Toast.MakeText(this, "File downloading started", ToastLength.Short).Show(); if (authSwitch.Checked) downloadViewModel.SetAuthData(loginEditText.Text, passwordEditText.Text); downloadViewModel.StartDownloadAsync(urlEditText.Text).ContinueWith(task => { OnFileDownloaded(); }); }