/// <inheritdoc />
        protected override async Task ExecuteAsync(ApplicationViewModel? viewModel, object? parameter)
        {
            if (viewModel == null)
                return;
                
            await _viewModelService.DeleteViewModelAsync(viewModel);

            if (viewModel?.Parent is MainWindowDialogModel parent)
                parent.Applications.Remove(viewModel);
        }