Buildingsite list hinzugefügt
This commit is contained in:
27
DaSaSo.ViewModel/Commands/SelectProjectCommand.cs
Normal file
27
DaSaSo.ViewModel/Commands/SelectProjectCommand.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using DaSaSo.ViewModel.Interface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DaSaSo.ViewModel.Commands
|
||||
{
|
||||
public class SelectProjectCommand : AsyncCommandBase
|
||||
{
|
||||
private readonly IActualProject _actualProject;
|
||||
private readonly ProjectListViewModel _projectListViewModel;
|
||||
|
||||
public SelectProjectCommand(IActualProject actualProject, ProjectListViewModel projectListViewModel)
|
||||
{
|
||||
_actualProject = actualProject;
|
||||
_projectListViewModel = projectListViewModel;
|
||||
}
|
||||
|
||||
public override async Task ExecuteAsync(object? parameter)
|
||||
{
|
||||
var s = _projectListViewModel.SelectedProject;
|
||||
_actualProject.SetProject(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user