public void ShowView(Window window) { ViewJobrequest viewJobrequest = new ViewJobrequest(); viewJobrequest.Show(); if (window != null) { window.Close(); } }
//Het window sluiten en het window van de homescreen openen public void RefuseJobRequest(Window window) { var detail = _dataservice.GetRequestDetail(SelectedRequest.IdRequest); _dataservice.removeJobRequest(SelectedRequest.IdRequest, detail.IdRqDetail); LoadJRIntoListbox(); ViewJobrequest viewJobrequest = new ViewJobrequest(); viewJobrequest.Show(); if (window != null) { window.Close(); } }