Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new <see cref="SolutionViewModel"/>.
 /// </summary>
 /// <param name="solution">The actual solution object</param>
 /// <param name="projectFactory">Creates project view-models</param>
 /// <param name="scheduler">Used to schedule background tasks</param>
 public SolutionViewModel(TfsSolution solution, Func <TfsSolutionProject, ProjectViewModel> projectFactory,
                          TaskScheduler scheduler)
 {
     _solution       = solution;
     _projectFactory = projectFactory;
     _scheduler      = scheduler;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new <see cref="SolutionViewModel"/>.
 /// </summary>
 /// <param name="solution">The actual solution object</param>
 /// <param name="projectFactory">Creates project view-models</param>
 public SolutionViewModel(TfsSolution solution,
                          Func <TfsSolutionProject, ProjectViewModel> projectFactory)
 {
     _solution       = solution;
     _projectFactory = projectFactory;
 }