public void ShowEditClient(IFormFactory formFactory, IClientRepository clientRepository, ITrainingGroupRepository trainingGroupRepository, string oib, IMainController mainController) { IEditClientForm form = formFactory.CreateEditClientForm(); Client client = clientRepository.GetClientWithOib(oib); List <TrainingGroup> trainingGroups = trainingGroupRepository.GetAllTrainingGroups(); form.ShowModal(mainController, client, trainingGroups); }