private void RaiseViewModelShowing(IClosableViewModel viewModel) { var eventArgs = new ViewModelShowingEventArgs(viewModel); OnViewModelShowing(eventArgs); var handler = ViewModelShowing; handler?.Invoke(this, eventArgs); }
/// <summary> /// Show view model /// </summary> /// <param name="viewModel">ViewModel to be shown</param> public void ShowViewModel(IClosableViewModel viewModel) { RaiseViewModelShowing(viewModel); }
/// <summary> /// Close /// </summary> /// <param name="viewModel">ViewModel to be closed</param> public void CloseViewModel(IClosableViewModel viewModel) { RaiseViewModelClose(viewModel); }