public WorkspaceViewModel(Workspace workspace) { Workspace = workspace; WorkspaceFactory = new WorkspaceFactory(); WorkspaceFactory.ActionFinishedEvent += () => { ProcessingAction = false; OnPropertyChanged("CreateWorkspaceEnabled"); OnPropertyChanged("OpenWorkspaceEnabled"); }; DownloadWorkspaceCommand = new RelayCommand(param => CreateWorkspaceOnDisk()); OpenWorkspaceCommand = new RelayCommand(param => WorkspaceFactory.OpenWorkspace(workspace)); }