Viewmodel erweitert

This commit is contained in:
Husky
2020-02-22 17:28:08 +01:00
parent f37a7c5dd4
commit d7ea23f812
7 changed files with 138 additions and 9 deletions

View File

@@ -29,11 +29,20 @@ namespace KanSan
InitializeComponent();
this.Title = ProgrammHashVersion.GIT_HASH;
UI.UCKundeEdit uCKundeEdit = new UI.UCKundeEdit();
ContentController.Content = uCKundeEdit;
/*UI.UCKundeEdit uCKundeEdit = new UI.UCKundeEdit();
ContentController.Content = uCKundeEdit;*/
UI.UCKundeList uCKundeList = new UI.UCKundeList();
uCKundeList.KundeAdded += UCKundeList_KundeAdded;
ContentController.Content = uCKundeList;
}
private void UCKundeList_KundeAdded(object sender, UI.KundeAddedKlickEventArgs e)
{
UI.UCKundeEdit uCKundeEdit = new UI.UCKundeEdit(e.kunde);
ContentController.Content = uCKundeEdit;
}
}
}