viewmodel ins wpf gepackt, build failed
This commit is contained in:
67
DaSaSo.Wpf/ViewModel/ImpregnierungEditViewModel.cs
Normal file
67
DaSaSo.Wpf/ViewModel/ImpregnierungEditViewModel.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using DaSaSo.Domain.Model;
|
||||
using DaSaSo.Domain.Services;
|
||||
using DaSaSo.Wpf.ViewModel.Commands;
|
||||
using DaSaSo.Wpf.ViewModel.Interface;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
|
||||
namespace DaSaSo.Wpf.ViewModel
|
||||
{
|
||||
public class ImpregnierungEditViewModel : BaseViewModel
|
||||
{
|
||||
private Impregnation _model;
|
||||
public ICommand SaveImpregnation { get; set; }
|
||||
public Impregnation Model { get => _model; set => _model = value; }
|
||||
|
||||
public int DN
|
||||
{
|
||||
get => _model.DN;
|
||||
set
|
||||
{
|
||||
_model.DN = value;
|
||||
}
|
||||
}
|
||||
public string LinerCharge
|
||||
{
|
||||
get => _model.LinerNumber;
|
||||
set
|
||||
{
|
||||
_model.LinerNumber = value;
|
||||
}
|
||||
}
|
||||
public decimal Wandstärke
|
||||
{
|
||||
get => _model.WallThickness;
|
||||
set
|
||||
{
|
||||
_model.WallThickness = value;
|
||||
}
|
||||
}
|
||||
public decimal LinerLänge
|
||||
{
|
||||
get => _model.Linerlength;
|
||||
set
|
||||
{
|
||||
_model.Linerlength = value;
|
||||
}
|
||||
}
|
||||
public string Imprägniernummer
|
||||
{
|
||||
get => _model.Number;
|
||||
set
|
||||
{
|
||||
_model.Number = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ImpregnierungEditViewModel(IActualProject actualProject, IDataService<Impregnation> dataservice)
|
||||
{
|
||||
_model = actualProject.AktuellImpregnation;
|
||||
SaveImpregnation = new SaveImpregnationCommand(this,dataservice);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user