private void ShowCode() { var filterGroupList = _filtersByDataColumnView.ToList(); var filterString = PowerShellCodeGenerator.GetPowershellForFilterGroups(filterGroupList); //TODO: Inject service var modalService = new ModalService(); modalService.ShowCodeModal(filterString); }