private void OnMessageRecieved(UpdateFinishedMessage message) { dialogService.CloseEditParkingDialog(); if (message.Type != UpdateFinishedMessage.MessageType.Updated) { ParkingDataService ds = new ParkingDataService(); Parkingen = ds.GetParkingen(); } }
public OverzichtParkingenViewModel() { ParkingDataService ds = new ParkingDataService(); Parkingen = ds.GetParkingen(); dialogService = new DialogService(); WijzigenCommand = new BaseCommand(WijzigenParkingen); ToevoegenCommand = new BaseCommand(ToevoegenParkingen); Messenger.Default.Register <UpdateFinishedMessage>(this, OnMessageRecieved); BindCommands(); }