Imprägnierungen können gespeichert werden
This commit is contained in:
@@ -1,16 +1,21 @@
|
||||
using DaSaSo.Domain.Model;
|
||||
using DaSaSo.Domain.Services;
|
||||
using DaSaSo.ViewModel.Commands;
|
||||
using DaSaSo.ViewModel.Interface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace DaSaSo.ViewModel
|
||||
{
|
||||
public class ImpregnierungEditViewModel : BaseViewModel
|
||||
{
|
||||
private Impregnation _model;
|
||||
public ICommand SaveImpregnation { get; set; }
|
||||
public Impregnation Model { get => _model; set => _model = value; }
|
||||
|
||||
public int DN
|
||||
{
|
||||
@@ -53,9 +58,10 @@ namespace DaSaSo.ViewModel
|
||||
}
|
||||
}
|
||||
|
||||
public ImpregnierungEditViewModel(IActualProject actualProject)
|
||||
public ImpregnierungEditViewModel(IActualProject actualProject, IDataService<Impregnation> dataservice)
|
||||
{
|
||||
_model = actualProject.AktuellImpregnation;
|
||||
SaveImpregnation = new SaveImpregnationCommand(this,dataservice);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user