コード例 #1
0
 public AccountController()
 {
     _accountService = new AccountService(new ModelStateWrapper(this.ModelState));
     _userService = new UserService(new ModelStateWrapper(this.ModelState));
     _sectorService = new IndustrialSectorService(new ModelStateWrapper(this.ModelState));
     _taskService = new TaskService(new ModelStateWrapper(this.ModelState));
     _contactService = new ContactService(new ModelStateWrapper(this.ModelState));
     _opportunityService = new OpportunityService(new ModelStateWrapper(this.ModelState));
 }
コード例 #2
0
 public AccountController()
 {
     _accountService     = new AccountService(new ModelStateWrapper(this.ModelState));
     _userService        = new UserService(new ModelStateWrapper(this.ModelState));
     _sectorService      = new IndustrialSectorService(new ModelStateWrapper(this.ModelState));
     _taskService        = new TaskService(new ModelStateWrapper(this.ModelState));
     _contactService     = new ContactService(new ModelStateWrapper(this.ModelState));
     _opportunityService = new OpportunityService(new ModelStateWrapper(this.ModelState));
 }
コード例 #3
0
 public AccountController(IAccountService service, IUserService userService, IIndustrialSectorService sectorService,
                          ITaskService taskService, IContactService contactService, IOpportunityService opportunityService)
 {
     _accountService     = service;
     _userService        = userService;
     _sectorService      = sectorService;
     _taskService        = taskService;
     _contactService     = contactService;
     _opportunityService = opportunityService;
 }
コード例 #4
0
 public AccountController(IAccountService service, IUserService userService, IIndustrialSectorService sectorService,
                          ITaskService taskService, IContactService contactService, IOpportunityService opportunityService)
 {
     _accountService = service;
     _userService = userService;
     _sectorService = sectorService;
     _taskService = taskService;
     _contactService = contactService;
     _opportunityService = opportunityService;
 }
コード例 #5
0
        public CreateEditSectorForm(IndustrialSector sector, bool editMode)
        {
            InitializeComponent();

            _sector   = sector;
            _editMode = editMode;

            _modelState    = new Dictionary <string, string>();
            _sectorService = new IndustrialSectorService(new SimpleModelStateWrapper(_modelState));

            if (_editMode)
            {
                this.Text = "Edit Sector";
                this.createEditButton.Text = "Save";
            }

            this.sectorBindingSource.DataSource = _sector;
        }
コード例 #6
0
        public CreateEditSectorForm(IndustrialSector sector, bool editMode)
        {
            InitializeComponent();

            _sector = sector;
            _editMode = editMode;

            _modelState = new Dictionary<string, string>();
            _sectorService = new IndustrialSectorService(new SimpleModelStateWrapper(_modelState));

            if (_editMode)
            {
                this.Text = "Edit Sector";
                this.createEditButton.Text = "Save";
            }

            this.sectorBindingSource.DataSource = _sector;
        }
コード例 #7
0
 private void InitializeServices()
 {
     _membershipService = new MembershipService(new UserService(new SimpleModelStateWrapper(new Dictionary <string, string>())));
     _sectorService     = new IndustrialSectorService(new SimpleModelStateWrapper(new Dictionary <string, string>()));
 }
コード例 #8
0
        private void InitializeServices()
        {
            _membershipService = new MembershipService(new UserService(new SimpleModelStateWrapper(new Dictionary<string, string>())));
            _sectorService = new IndustrialSectorService(new SimpleModelStateWrapper(new Dictionary<string, string>()));

        }
コード例 #9
0
 public SectorController(IIndustrialSectorService service)
 {
     _sectorService = service;
 }
コード例 #10
0
 public SectorController()
 {
     _sectorService = new IndustrialSectorService(new ModelStateWrapper(this.ModelState));
 }
コード例 #11
0
 public SectorController(IIndustrialSectorService service)
 {
     _sectorService = service;
 }
コード例 #12
0
 public SectorController()
 {
     _sectorService = new IndustrialSectorService(new ModelStateWrapper(this.ModelState));
 }