예제 #1
0
        public void ShowClients()
        {
            ClientController clientController = new ClientController();

            IViewClientsForm form = formFactory.CreateViewClientsForm();

            clientController.ShowClients(form, clientRepository, this);
        }
예제 #2
0
        public void ShowClients(IViewClientsForm form, IClientRepository clientRepository, IMainController mainController)
        {
            List <Client> clients = clientRepository.GetAllClients();

            Subject subject = (Subject)clientRepository;

            subject.Attach((IObserver)form);

            form.ShowModaless(mainController, clients);
        }