/// <summary> /// Sets the revert target for the Closing window "cancel" button. /// </summary> /// <param name="passedRevert">The Window to revert to.</param> public void SetClosingWindowRevert(Windows passedRevert) { CloseGameViewModel vm = WindowContent.GetWindowContent().GetViewModel <CloseGameViewModel>(); vm.CalledWindow = passedRevert; }
/// <summary> /// Review Refactor closing window revert. /// </summary> public void Revert() { CloseGameViewModel closeGameViewModel = WindowContent.GetWindowContent().GetViewModel <CloseGameViewModel>(); WindowContent.GetWindowContent().SetViewModelActive(closeGameViewModel.CalledWindow); }