Beispiel #1
0
        private void RaiseViewModelShowing(IClosableViewModel viewModel)
        {
            var eventArgs = new ViewModelShowingEventArgs(viewModel);

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