public void Close <TViewModel>(DialogResult dialogResult, IAgileTeamViewModel viewModel) where TViewModel : IAgileTeamViewModel { IsClosing = true; MessengerService.CloseView <TViewModel>(); RaiseViewClosedEvent(new ViewModelEventArgs(dialogResult, viewModel)); IsClosed = true; }
public ViewModelEventArgs(DialogResult dialogResult, IAgileTeamViewModel viewModel) { DialogResult = dialogResult; ViewModel = viewModel; }