/// <summary> /// Initializes a new instance of the <see cref="CustomViewModelDialogBase{TViewModel}"/> class. /// </summary> private void Initialize() { ViewModel = CustomDialogViewModelResolver?.Resolve <TViewModel>(); if (ViewModel != null) { ViewModel.Dialog = this; CustomDialogConfig = ViewModel.CustomDialogConfig; } }
/// <summary> /// Initializes a new instance of the <see cref="CustomViewModelDialogBase{TViewModel}"/> class. /// </summary> protected CustomViewModelDialogBase() { ViewModel = CustomDialogViewModelResolver?.Resolve <TViewModel>(); if (ViewModel != null) { ViewModel.Dialog = this; CustomDialogConfig = ViewModel.CustomDialogConfig; } }