private void ReCalculateCommands() { // http://stackoverflow.com/questions/6020497/wpf-v4-mvvm-light-v4-bl16-mix11-relaycommand-canexecute-doesnt-fire ProjectArtifactsCommand.RaiseCanExecuteChanged(); DbPackageCommand.RaiseCanExecuteChanged(); CancelDownloadCommand.RaiseCanExecuteChanged(); }
/// <summary> /// Initializes a new instance of the DownloadViewModel class. /// </summary> public DownloadViewModel(string url, string programName) { DownloadCommand = new DownloadCommand(this); CancelDownloadCommand = new CancelDownloadCommand(this); this.url = url; this.programName = programName; }
public BucketEntryViewModel(BucketContentViewModel bucketContentViewModel, IBucketService bucketService, IObjectService objectService) { _bucketContentViewModel = bucketContentViewModel; DownloadObjectCommand = new DownloadObjectCommand(bucketContentViewModel, bucketService, objectService, bucketContentViewModel.BucketName); DeleteObjectCommand = new DeleteObjectCommand(bucketService, objectService); CancelUploadCommand = new CancelUploadCommand(bucketService, objectService); CancelDownloadCommand = new CancelDownloadCommand(bucketService, objectService); ShowErrorCommand = new ShowErrorCommand(); }
public DownloadMapsViewModel() { OpenFolderDialogCommand = new OpenFolderDialogCommand(this); StartDownloadCommand = new StartDownloadCommand(this); CancelDownloadCommand = new CancelDownloadCommand(this); OpenMapsSelectorCommand = new OpenMapsSelectorCommand(this); OpenAboutWindowCommand = new OpenAboutWindowCommand(); Maps = new ObservableCollection <MapModel>(); Progress = 0; MapsToDownload = 1; MapsSelectionStatus = "30/30"; }