private void PerformDownload() { if (!_cmdDownload.IsEnabled) { txtUrl.SelectAll(); txtUrl.Focus(); return; } prgBusy.IsBusy = true; _download.Download(txtUrl.Text, ucAuth.GetCredentials()); }
private void lstLinks_Navigation(object sender, NavigationListControl.NavigationEventArgs e) { var item = e.Item as WebLinkInfo; if (item == null) { return; } progBusy.IsBusy = true; lstLinks.IsEnabled = false; _download.Download(item.Url, WebLinks.Credentials); }