Schlauchliner erweitert
This commit is contained in:
@@ -58,17 +58,19 @@ namespace DaSaSo.Wpf.ViewModel.Controls
|
||||
}
|
||||
}
|
||||
}
|
||||
private DateTime _date;
|
||||
|
||||
public DateTime Datum
|
||||
{
|
||||
get => _date;
|
||||
get => model.Date;
|
||||
set
|
||||
{
|
||||
if(_date != value)
|
||||
Trace.WriteLine(value);
|
||||
if (model.Date != value)
|
||||
{
|
||||
_date = value;
|
||||
model.Date = DateOnly.FromDateTime(_date);
|
||||
model.Date = value;
|
||||
|
||||
OnPropertyChanged();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -81,7 +83,7 @@ namespace DaSaSo.Wpf.ViewModel.Controls
|
||||
{
|
||||
this.model = model;
|
||||
SewerPreperationControllViewModel = new SewerPreperationControllViewModel(model.PreparationType);
|
||||
_date = model.Date.ToDateTime(new TimeOnly(0));
|
||||
|
||||
}
|
||||
public override void Dispose()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user