Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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";
        }