Projekte integration angefangen

This commit is contained in:
HuskyTeufel
2021-08-31 13:31:52 +02:00
parent c66751ddc5
commit ade84e30e3
9 changed files with 59 additions and 87 deletions

View File

@@ -27,6 +27,7 @@ namespace KanSan.ViewModel
}
public ICommand AddNewClientCommand { get; set; }
public ICommand EditClientCommand { get; set; }
public ICommand SelectClientCommand { get; set; }
public List<Kunde> Kunden
{
@@ -42,6 +43,13 @@ namespace KanSan.ViewModel
AddNewClientCommand = new RelayCommand(parameter => NewClient());
EditClientCommand = new RelayCommand(parameter => EditClient());
SelectClientCommand = new RelayCommand(parameter => SelectClient());
}
private void SelectClient()
{
if (selectedKunde == null) return;
Mediator.Notify("ClientSelected", selectedKunde);
}
private void NewClient()