public ClusterTasksViewModelFactory( ClustersListViewModel clustersListViewModel, ClusterGetViewModel clusterGetViewModel, ClusterStartViewModel clusterStartViewModel ) { _clustersListViewModel = clustersListViewModel; _clusterGetViewModel = clusterGetViewModel; _clusterStartViewModel = clusterStartViewModel; }
public ClusterTasksViewModel( MainWindowViewModel parent, ClustersListViewModel clustersListViewModel, ClusterGetViewModel clusterGetViewModel, ClusterStartViewModel clusterStartViewModel ) { ClustersListViewModel = clustersListViewModel; ClusterGetViewModel = clusterGetViewModel; ClusterStartViewModel = clusterStartViewModel; GoBackCommand = new SimpleCommand <object, object>(x => parent.CurrentTaskViewModel = parent); }