public MainController(IMainView view, IMaintainFactory matinainFactory, IConfigurationFactory configurationFactory,
                              IProjectOperations projectOperations, IEmailServer emailServer)
        {
            View                 = view;
            MaintainFactory      = matinainFactory;
            ConfigurationFactory = configurationFactory;

            View.LoadProject   += LoadProject;
            View.AddProject    += AddProject;
            View.DeleteProject += DeleteProject;
            View.SetWorkItemsForCurrentProject += SetWorkItemsForCurrentProject;
            View.ModifyConfiguration           += ModifyConfiguration;
            View.TickerElapsed += RefreshProjects;
            View.EditProject   += EditProject;
            _projectOperations  = projectOperations;
            _smtpServer         = emailServer;
        }
 public CityController(ICityService cityService, ILogger logger, IMaintainFactory maintainFactory)
 {
     _cityService     = cityService;
     _ILogger         = logger;
     _maintainFactory = maintainFactory;
 }
 public PoliticalController(IPoliticalService politicalService, ILogger logger, IMaintainFactory maintainFactory)
 {
     _politicalService = politicalService;
     _ILogger          = logger;
     _maintainFactory  = maintainFactory;
 }
Esempio n. 4
0
 public NationController(INationService nationService, ILogger logger, IMaintainFactory maintainFactory)
 {
     _nationService   = nationService;
     _ILogger         = logger;
     _maintainFactory = maintainFactory;
 }