private void ShowDialog(string context)
        {
            var dialogViewModel = new DialogViewModel();
            dialogViewModel.DisplayName = "Custom Dialog";
            dialogViewModel.Content = "This is the content of the dialog.";
            dialogViewModel.Activated += OnDialogActivated;
            dialogViewModel.Deactivated += OnDialogDeactivated;

            var result = _windowService.ShowDialog(dialogViewModel, context);
            Log.Add(Invariant($"DialogResult = {result}"));

            Debug.Assert(dialogViewModel.Conductor == null, "Conductor has not been reset.");
            Debug.Assert(dialogViewModel.DialogResult == result, "View model's DialogResult is wrong.");

            dialogViewModel.Activated -= OnDialogActivated;
            dialogViewModel.Deactivated -= OnDialogDeactivated;
        }
        private void ShowDialog(string context)
        {
            var dialogViewModel = new DialogViewModel();

            dialogViewModel.DisplayName  = "Custom Dialog";
            dialogViewModel.Content      = "This is the content of the dialog.";
            dialogViewModel.Activated   += OnDialogActivated;
            dialogViewModel.Deactivated += OnDialogDeactivated;

            var result = _windowService.ShowDialog(dialogViewModel, context);

            Log.Add(Invariant($"DialogResult = {result}"));

            Debug.Assert(dialogViewModel.Conductor == null, "Conductor has not been reset.");
            Debug.Assert(dialogViewModel.DialogResult == result, "View model's DialogResult is wrong.");

            dialogViewModel.Activated   -= OnDialogActivated;
            dialogViewModel.Deactivated -= OnDialogDeactivated;
        }