private void SaveUpdateValidate(Seat seat, IAreaService @as) { var asAll = @as.GetAll(); var all = GetAll(); if (!(from x in asAll where x.Id == seat.AreaId select x).Any()) { throw new Exception("No such area"); } var r = from x in asAll where x.Id == seat.AreaId select x; if (r.Any()) { int coordX = @as.Get(seat.AreaId).CoordX; int coordY = @as.Get(seat.AreaId).CoordY; int lid = r.First().LayoutId; if ((from x in asAll where x.Id != seat.AreaId && x.LayoutId == lid && x.CoordX > coordX && x.CoordY > coordY && (coordX + seat.Row >= x.CoordX || coordY + seat.Number >= x.CoordY) select x).Any()) { throw new Exception("Seat coords out of range"); } } }
public bool Update(Seat seat, IAreaService @as) { var all = GetAll(); if (Get(seat.Id).Row != seat.Row || Get(seat.Id).AreaId != seat.AreaId) { if (((from x in GetAll() where x.AreaId == seat.AreaId && (seat.Row == x.Row) select x).Any())) { throw new Exception("Seat with such coords already exists"); } } if (Get(seat.Id).Number != seat.Number || Get(seat.Id).AreaId != seat.AreaId) { if (((from x in GetAll() where x.AreaId == seat.AreaId && (seat.Number == x.Number) select x).Any())) { throw new Exception("Seat with such coords already exists"); } } SaveUpdateValidate(seat, @as); return(Repository.Update(seat)); }
public OxiteRegisterRoutes(AppSettingsHelper appSettings, Site site, IAreaService areaService, IRouteModifier routeModifier) { this.appSettings = appSettings; this.site = site; this.areaService = areaService; this.routeModifier = routeModifier; }
public QuestionController(ILoggingService loggingService, IPagingService paggingService, IAreaService areaService, IIdentityService identityService, IQuestionService questionService, ITagService tagService, IPhotoService photoService) : base(loggingService, paggingService, identityService, photoService) { this._questionService = questionService; this._tagService = tagService; _areaService = areaService; }
public LowerBathroomConfiguration( IDeviceService deviceService, ISchedulerService schedulerService, IAreaService areaService, SynonymService synonymService, AutomationFactory automationFactory, ActuatorFactory actuatorFactory, SensorFactory sensorFactory) { if (deviceService == null) throw new ArgumentNullException(nameof(deviceService)); if (schedulerService == null) throw new ArgumentNullException(nameof(schedulerService)); if (areaService == null) throw new ArgumentNullException(nameof(areaService)); if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory)); if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory)); if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory)); _deviceService = deviceService; _schedulerService = schedulerService; _areaService = areaService; _synonymService = synonymService; _automationFactory = automationFactory; _actuatorFactory = actuatorFactory; _sensorFactory = sensorFactory; }
public OnModuleLoad(INWScript script, INWNXChat nwnxChat, INWNXEvents nwnxEvents, IObjectProcessingService objectProcessing, IFarmingService farming, INWNXDamage nwnxDamage, IAreaService area, IBaseService @base, ISpawnService spawn, ICustomEffectService customEffect, IObjectVisibilityService objectVisibility, IBackgroundThreadManager backgroundThreadManager, IDataPackageService dataPackage, INWNXWeapon nwnxWeapon) { _ = script; _nwnxChat = nwnxChat; _nwnxEvents = nwnxEvents; _objectProcessing = objectProcessing; _farming = farming; _nwnxDamage = nwnxDamage; _area = area; _base = @base; _spawn = spawn; _customEffect = customEffect; _objectVisibility = objectVisibility; _backgroundThreadManager = backgroundThreadManager; _dataPackage = dataPackage; _nwnxWeapon = nwnxWeapon; }
public ShopController( IMemberService _memberService , ICompanyService _companyService , IAreaAttService _areaAttService , IAreaService _areaService , IOutDoorService _outDoorService , IOutDoorMediaCateService _outDoorMediaCateService , IFormatCateService _formatCateService , ICompanyBussinessService _companyBussinessService , ICompanyFundService _companyFundService , ICompanyScaleService _companyScaleService , IPeriodCateService _periodCateService , IOwnerCateService _ownerCateService , IAuctionCalendarService _auctionCalendarService ) { areaAttService = _areaAttService; areaService = _areaService; memberService = _memberService; companyService = _companyService; outDoorService = _outDoorService; outDoorMediaCateService = _outDoorMediaCateService; formatCateService = _formatCateService; companyBussinessService = _companyBussinessService; companyFundService = _companyFundService; companyScaleService = _companyScaleService; periodCateService = _periodCateService; ownerCateService = _ownerCateService; auctionCalendarService = _auctionCalendarService; }
public BedroomConfiguration( IDeviceService deviceService, IAreaService areaService, CCToolsBoardService ccToolsBoardService, SynonymService synonymService, ActuatorFactory actuatorFactory, SensorFactory sensorFactory, AutomationFactory automationFactory) { if (deviceService == null) throw new ArgumentNullException(nameof(deviceService)); if (areaService == null) throw new ArgumentNullException(nameof(areaService)); if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService)); if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory)); if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory)); if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory)); _deviceService = deviceService; _areaService = areaService; _ccToolsBoardService = ccToolsBoardService; _synonymService = synonymService; _actuatorFactory = actuatorFactory; _sensorFactory = sensorFactory; _automationFactory = automationFactory; }
public EquipmentsAreaController(IAreaService areaService, IEquipmentService equipmentService , IMapper mapper) { _areaService = areaService; _equipmentService = equipmentService; _mapper = mapper; }
public MemberAddressController(IMemberAddressService memberAddressService,IWorkContext workContext,IMemberService memberService,IAreaService areaService) { _memberAddressService = memberAddressService; _workContext = workContext; _memberService = memberService; _areaService = areaService; }
public AreaController() { var dbfactory = new DatabaseFactory(); _areaService = new AreaService(new AreaRepository(dbfactory), new UnitOfWork(dbfactory)); _areaConfigurationService = new AreaConfigurationService(new AreaConfigurationRepository(dbfactory), new UnitOfWork(dbfactory)); _areaConfigurationDetailService = new AreaConfigurationDetailService(new AreaConfigurationDetailRepository(dbfactory), new UnitOfWork(dbfactory)); }
public OfficeConfiguration( IDeviceService deviceService, IAreaService areaService, IDaylightService daylightService, CCToolsBoardService ccToolsBoardService, SynonymService synonymService, RemoteSocketService remoteSocketService, ActuatorFactory actuatorFactory, SensorFactory sensorFactory) { if (deviceService == null) throw new ArgumentNullException(nameof(deviceService)); if (areaService == null) throw new ArgumentNullException(nameof(areaService)); if (daylightService == null) throw new ArgumentNullException(nameof(daylightService)); if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService)); if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (remoteSocketService == null) throw new ArgumentNullException(nameof(remoteSocketService)); if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory)); if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory)); _deviceService = deviceService; _areaService = areaService; _daylightService = daylightService; _ccToolsBoardService = ccToolsBoardService; _synonymService = synonymService; _remoteSocketService = remoteSocketService; _actuatorFactory = actuatorFactory; _sensorFactory = sensorFactory; }
//private readonly ICacheService _cache; public DemoController(IAreaService areaService, IDataProtectionProvider dataProtectionProvider) { _areaService = areaService; //_cache = cache; for (int i = 1; i < 100; i++) { _list.Add(new ViewModel { id = i.ToString(), city = "兰州", score = "10", sex = "男", sign = "Prince", classify = "100", experience = "1233", wealth = "1111", username = "******" }); } //创建模拟数据 for (int i = 0; i < 6; i++) { _listDataProtect.Add(new DataDemoViewModel(i, "Aju_Carefree" + i)); } _dataProtector = dataProtectionProvider.CreateProtector("aju_carefree_string"); }
public FakeCasoService( IEnvolvimentoRepositorio envolvimentoRepositorio, IProcessoRepositorio processoRepositorio, IProcessoService processoService, IProfissionalService profissionalService, IClienteService clienteService, IAreaService areaService, IMapper mapper, IPastaService pastaService, IExportService exportService, IAudienciaRepositorio compromissoAudienciaRepositorio, IPrazoRepositorio prazoRepositorio ) { _compromissoAudienciaRepositorio = compromissoAudienciaRepositorio; _envolvimentoRepositorio = envolvimentoRepositorio; _processoRepositorio = processoRepositorio; _processoService = processoService; _mapper = mapper; _areaService = areaService; _clienteService = clienteService; _profissionalService = profissionalService; _pastaService = pastaService; _exportService = exportService; _prazoRepositorio = prazoRepositorio; }
public MemberAddressController(IMemberAddressService memberAddressService, IWorkContext workContext, IMemberService memberService, IAreaService areaService) { _memberAddressService = memberAddressService; _workContext = workContext; _memberService = memberService; _areaService = areaService; }
public void TestBLL() { IAreaService service = DALBuild.GetObj <IAreaService>("BLL", "AreaService"); IList <TravelAgent.Model.Area> list = service.GetByParent(510000); Console.WriteLine(list[0].Name); }
public AjaxContentController( IMemberService _memberService , IAreaAttService _areaAttService , IAreaService _areaService , IOutDoorMediaCateService _outDoorMediaCateService , IOutDoorService _outDoorService , IFormatCateService _formatCateService , ICompanyBussinessService _companyBussinessService , ICompanyFundService _companyFundService , ICompanyScaleService _companyScaleService , IPeriodCateService _periodCateService , IOwnerCateService _ownerCateService , IAuctionCalendarService _auctionCalendarService , ISliderImgService _sliderImgService , ISourceService _sourceService , ISearchService _searchService ) { areaAttService = _areaAttService; areaService = _areaService; memberService = _memberService; outDoorMediaCateService = _outDoorMediaCateService; outDoorService = _outDoorService; formatCateService = _formatCateService; companyBussinessService = _companyBussinessService; companyFundService = _companyFundService; companyScaleService = _companyScaleService; periodCateService = _periodCateService; ownerCateService = _ownerCateService; auctionCalendarService = _auctionCalendarService; sliderImgService = _sliderImgService; sourceService = _sourceService; searchService = _searchService; }
public AddressService(IAddressRepository addressRepository, IUserService userService, ICityService cityService, IAreaService areaService) { _AddressRepository = addressRepository; _userService = userService; _cityService = cityService; _areaService = areaService; }
public AreaController() { areaService = new AreaService(); flowmeterService = new FlowMeterService(); pressuremeterService = new PressureMeterService(); qualitymeterService = new QualityMeterService(); }
public StudentsController(IStudentService StudentsService, ILookupService lookupService, IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService, IStudentsTransportService StudentsTransportService, IStudentsDocsService StudentsDocsService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IBatchService BatchService, IAreaService AreaService, IStudentsAttendanceService StudentsAttendanceService, IStudentsClassService StudentsClassService) : base() { this._StudentService = StudentsService; this._StudentsParentService = StudentsParentService; this._StudentsMedicalService = StudentsMedicalService; this._StudentsTransportService = StudentsTransportService; this._StudentsDocsService = StudentsDocsService; this._StudentsClassService = StudentsClassService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._BatchService = BatchService; this._AreaService = AreaService; this._lookupService = lookupService; this._StudentsAttendanceService = StudentsAttendanceService; }
public AreaEditor(IAreaView view) { this.mView = view; this.mAreaService = AreaService.Instance; this.mCentroCostoService = CentroCostoService.Instance; this.mPersonaService = PersonaService.Instance; this.Initialize(); }
public OxiteRoutes(RouteCollection routes, AppSettingsHelper appSettings, Site site, IAreaService areaService, Type handlerType) { this.routes = routes; this.appSettings = appSettings; this.site = site; this.areaService = areaService; routeHandlerType = handlerType; }
public AccountService(IAccountRepository repository, ITaskListService taskListService, ITaskService taskService, IAreaService areaService, ITagService tagService) { _repository = repository; _taskListService = taskListService; _taskService = taskService; _areaService = areaService; _tagService = tagService; }
public VenueModelsController(IVenueService venueService, ISeatService seatService, ITMLayoutService tmlayoutService, IAreaService areaService) { _venueService = venueService; _seatService = seatService; _tmlayoutService = tmlayoutService; _areaService = areaService; }
public AreaController(IAreaService areaService, IOptionsSnapshot <ApiSettings> apiSettings, ILogger <AreaController> logger) { _areaService = areaService; _areaLogger = logger; _apiSettings = apiSettings.Value; CheckArguments(); }
public BuyerController() { buyerService = Injector.Container.Resolve <IBuyerService>(); areaService = Injector.Container.Resolve <IAreaService>(); purchaseService = Injector.Container.Resolve <IBuyerPurchaseService>(); productService = Injector.Container.Resolve <IProductService>(); catagoryService = Injector.Container.Resolve <ICatagoryService>(); }
public LocationController(ILocationService locationService, IProvinceService provinceService, IAreaService areaService, ICategoryService categoryService, ILocationImageService locationImageService) { this.locationService = locationService; this.provinceService = provinceService; this.areaService = areaService; this.categoryService = categoryService; this.locationImageService = locationImageService; }
/// <summary> /// Constructor /// </summary> public AreaBaseController(IAreaService areaService) { if (areaService == null) { throw new ArgumentNullException("areaService"); } this.areaService = areaService; }
public static IArea CreateArea(this IAreaService areaService, Enum id) { if (areaService == null) { throw new ArgumentNullException(nameof(areaService)); } return(areaService.CreateArea(AreaIdGenerator.Generate(id))); }
public PICController(IPICService PICService, ILocationService locationService, IAreaService areaService, IAssetTypeService assetTypeService, ApplicationUserManager applicationUserManager) { this._PICService = PICService; this._locationService = locationService; this._areaService = areaService; this._assetTypeService = assetTypeService; this.applicationUserManager = applicationUserManager; }
public SliderImgController( ISliderImgService _SliderImgService, IAreaService _AreaService ) { SliderImgService = _SliderImgService; AreaService = _AreaService; }
public TaskListController(IAccountService accountService, ITaskListService taskListService, IAreaService areaService, ITaskService taskService, ITagService tagService) { _accountService = accountService; _taskListService = taskListService; _areaService = areaService; _taskService = taskService; _tagService = tagService; }
public PersonaAreaEditor(IPersonaAreaView view) { this.mView = view; this.mPersonaAreaService = PersonaAreaService.Instance; this.mAreaService = AreaService.Instance; this.mPersonaService = PersonaService.Instance; this.Initialize(); }
public PostController(IPostService postService, ITagService tagService, IAreaService areaService, Site site) { this.postService = postService; this.tagService = tagService; this.areaService = areaService; this.site = site; ValidateRequest = false; }
public SiteController(AppSettingsHelper appSettings, ISiteService siteService, IUserService userService, IAreaService areaService, ILanguageService languageService) { this.appSettings = appSettings; this.siteService = siteService; this.userService = userService; this.areaService = areaService; this.languageService = languageService; }
public VenueService(IVenueRepository venueRepository, ITMLayoutService tmlayoutService, IAreaService areaService, ISeatService seatService) { _venueRepository = venueRepository; _tmlayoutService = tmlayoutService; _areaService = areaService; _seatService = seatService; }
public TicketController(ITransactionService transactionAppService, ITicketService ticketService, ITicketTypeService ticketTypeService, IUserService userService, IAreaService areaService) { this.ticketService = ticketService; this.ticketTypeService = ticketTypeService; this.userService = userService; this.transactionService = transactionAppService; this.areaService = areaService; }
public MessageContextFactory(SynonymService synonymService, IAreaService areaService) { if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (areaService == null) throw new ArgumentNullException(nameof(areaService)); _synonymService = synonymService; _areaService = areaService; }
public MetaWeblogAPI(IPostService postService, IAreaService areaService, IUserService userService, ITagService tagService, IRegularExpressions expressions) { this.postService = postService; this.areaService = areaService; this.userService = userService; this.tagService = tagService; this.expressions = expressions; }
protected override void Initialize(RequestContext requestContext) { base.Initialize(requestContext); currentUser = (User)Session[AccountController.USER_SESSION_ID]; warehouseSevices = new WareHouseServices(); areaService = new AreaService(); ViewData["location"] = new SelectList(areaService.GetAll(x => x.trading_yn.Value == true), "Id", "AreaAddress"); }
public NewAreaRequestValidator(IAreaService areaService) { _areaService = areaService; RuleFor(request => request.Latitude) .Must((request, latitude) => BeNonExistingAreaRequest(request)) .WithMessage("There's a previous request with these coordinates and radius"); }
public NumeracionEditor(INumeracionView view) { this.mView = view; this.mNumeracionService = NumeracionService.Instance; this.mAreaService = AreaService.Instance; this.mNumeracion = new Numeracion(); this.Initialize(); }
public AreaController(IAreaService areaService) { if (areaService == null) { throw new NullReferenceException(nameof(areaService)); } _areaService = areaService; }
public ProjectController(IProjectService projectService, IUnitOfWorkAsync unitOfWork, IAreaService areaService, IProjectTypeService projectTypeService, IPriceService priceService) { _projectService = projectService; _unitOfWork = unitOfWork; _AreaService = areaService; _ProjectTypeService = projectTypeService; _PriceService = priceService; }
public StudentService(IStudentRepository StudentRepository, IFileHandler FileHandler, IStudentsParentService StudentsParentService, IStudentsMedicalService StudentsMedicalService, IStudentsTransportService StudentsTransportService, IAcademicYearService AcademicYearService, IClassService ClassService, ISectionService SectionService, IBatchService BatchService, IAreaService AreaService) { this._StudentRepository = StudentRepository; this._iFileHandler = FileHandler; this._IStudentsParentService = StudentsParentService; this._IStudentsMedicalService = StudentsMedicalService; this._IStudentsTransportService = StudentsTransportService; this._AcademicYearService = AcademicYearService; this._ClassService = ClassService; this._SectionService = SectionService; this._BatchService = BatchService; this._AreaService = AreaService; }
public PersonalController(IAreaService _areaService , IMemberService _memberService , IEmailService _emailService , IMember_ActionService _member_ActionService , IAreaAttService _areaAttService , IOutDoorService _outDoorService , ICompanyService _companyService , IMember_MoneyService _member_MoneySerivce , IMember_CreditIndexService _member_CreditIndexService) { areaService = _areaService; memberService = _memberService; emailService = _emailService; member_ActionService = _member_ActionService; areaAttService = _areaAttService; outDoorService = _outDoorService; companyService = _companyService; member_MoneySerivce = _member_MoneySerivce; member_CreditIndexService = _member_CreditIndexService; }
public AppController( IUserService userService, ILoginService loginService, IPositionService positionService, IAlarmService alarmService, IMileageReportService mileageReportService, IDeviceService deviceService, IAUserService aUserService, IStateService stateService, IAreaService areaService, IInstructionSendService instructionSendService) { _userService = userService; _aUserService = aUserService; _loginService = loginService; _positionService = positionService; _mileageReportService = mileageReportService; _deviceService = deviceService; _stateService = stateService; _areaService = areaService; _instructionSendService = instructionSendService; _alarmService = alarmService; }
public PersonalAgentService( SynonymService synonymService, IComponentService componentService, IAreaService areaService, IWeatherService weatherService, IOutdoorTemperatureService outdoorTemperatureService, IOutdoorHumidityService outdoorHumidityService) { if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (componentService == null) throw new ArgumentNullException(nameof(componentService)); if (areaService == null) throw new ArgumentNullException(nameof(areaService)); if (weatherService == null) throw new ArgumentNullException(nameof(weatherService)); if (outdoorTemperatureService == null) throw new ArgumentNullException(nameof(outdoorTemperatureService)); if (outdoorHumidityService == null) throw new ArgumentNullException(nameof(outdoorHumidityService)); _synonymService = synonymService; _componentService = componentService; _areaService = areaService; _weatherService = weatherService; _outdoorTemperatureService = outdoorTemperatureService; _outdoorHumidityService = outdoorHumidityService; }
public AjaxServiceController( IMemberService _memberService , IAreaAttService _areaAttService , IAreaService _areaService , ICompanyService _companyService , IOutDoorMediaCateService _outDoorMediaCateService , IFormatCateService _formatCateService , ICompanyBussinessService _companyBussinessService , ICompanyFundService _companyFundService , ICompanyScaleService _companyScaleService , IPeriodCateService _periodCateService , IOwnerCateService _ownerCateService , IAuctionCalendarService _auctionCalendarService , IArticleCateService _articleCateService , IMember_FavoriteService _member_FavoriteService , IMember_SchemeService _member_SchemeService , IOutDoorService _outDoorService , IScheme_MediaService _scheme_MediaService ) { areaAttService = _areaAttService; areaService = _areaService; companyService = _companyService; memberService = _memberService; outDoorMediaCateService = _outDoorMediaCateService; formatCateService = _formatCateService; companyBussinessService = _companyBussinessService; companyFundService = _companyFundService; companyScaleService = _companyScaleService; periodCateService = _periodCateService; ownerCateService = _ownerCateService; auctionCalendarService = _auctionCalendarService; articleCateService = _articleCateService; member_FavoriteService = _member_FavoriteService; member_SchemeService = _member_SchemeService; outDoorService = _outDoorService; scheme_MediaService = _scheme_MediaService; }
public MemberController( IDeviceService deviceService, IDeviceGroupService deviceGroupService, IPositionService positionService, IAreaService areaService, ILineService lineService, IAlarmService alarmService, IMileageReportService mileageReportService, IAUserService aUserService, IUserService userService, IInstructionSendService instructionSendService) { _deviceService = deviceService; _deviceGroupService = deviceGroupService; _positionService = positionService; _areaService = areaService; _lineService = lineService; _alarmService = alarmService; _mileageReportService = mileageReportService; _aUserService = aUserService; _userService = userService; _instructionSendService = instructionSendService; }
public Configuration( CCToolsBoardService ccToolsBoardService, IPi2GpioService pi2GpioService, SynonymService synonymService, IAreaService areaService, ActuatorFactory actuatorFactory, SensorFactory sensorFactory, AutomationFactory automationFactory) { if (ccToolsBoardService == null) throw new ArgumentNullException(nameof(ccToolsBoardService)); if (pi2GpioService == null) throw new ArgumentNullException(nameof(pi2GpioService)); if (synonymService == null) throw new ArgumentNullException(nameof(synonymService)); if (actuatorFactory == null) throw new ArgumentNullException(nameof(actuatorFactory)); if (sensorFactory == null) throw new ArgumentNullException(nameof(sensorFactory)); if (automationFactory == null) throw new ArgumentNullException(nameof(automationFactory)); _ccToolsBoardService = ccToolsBoardService; _pi2GpioService = pi2GpioService; _synonymService = synonymService; _areaService = areaService; _actuatorFactory = actuatorFactory; _sensorFactory = sensorFactory; _automationFactory = automationFactory; }
public AreaController(IAreaService ObjService, ILookupService lookupService) : base() { this._ObjService = ObjService; this._lookupService = lookupService; }
public CommunityAreaController(IAreaService areaService) { _areaService = areaService; }
public AreaController(IAccountService accountService, IAreaService areaService, ITagService tagService) { _accountService = accountService; _areaService = areaService; _tagService = tagService; }
/// <summary> /// 区域字典初始化 /// </summary> /// <param name="areaService"></param> public AreaController(IAreaService areaService) { _areaService = areaService; }
public HomeController(IAreaService AreaService, IUnitOfWorkAsync unitOfWork) { _AreaService = AreaService; _unitOfWork = unitOfWork; }
public AreasController( IAreaService _areaService ) { areaService = _areaService; }
public AreaController(IAreaService areaService, IProvinceService provinceService) { this.areaService = areaService; this.provinceService = provinceService; }
/// <summary> /// Ctor. /// </summary> /// <param name="countryService"></param> /// <param name="areaService"></param> /// <param name="summitGroupService"></param> /// <param name="summitService"></param> /// <param name="routeService"></param> /// <param name="variationService"></param> /// <param name="logEntryService"></param> /// <param name="nameInputViewCommand"></param> /// <param name="difficultyManagementViewCommand"></param> /// <param name="nameAndLevelInputViewCommand"></param> /// <param name="logEntryInputViewCommand"></param> public MainViewModel(ICountryService countryService, IAreaService areaService, ISummitGroupService summitGroupService, ISummitService summitService, IRouteService routeService, IVariationService variationService, ILogEntryService logEntryService, IDifficultyLevelService difficultyLevelService, IDifficultyLevelScaleService difficultyLevelScaleService, NameInputViewCommand nameInputViewCommand, DifficultyManagementViewCommand difficultyManagementViewCommand, NameAndLevelInputViewCommand nameAndLevelInputViewCommand , LogEntryInputViewCommand logEntryInputViewCommand) { _countryService = countryService; _areaService = areaService; _summitGroupService = summitGroupService; _summitService = summitService; _routeService = routeService; _variationService = variationService; _logEntryService = logEntryService; _difficultyLevelService = difficultyLevelService; _difficultyLevelScaleService = difficultyLevelScaleService; _nameInputViewCommand = nameInputViewCommand; _difficultyManagementViewCommand = difficultyManagementViewCommand; _nameAndLevelInputViewCommand = nameAndLevelInputViewCommand; _logEntryInputViewCommand = logEntryInputViewCommand; }
/// <summary> /// 状态管理初始化 /// </summary> /// <param name="parameterService">parameterService</param> /// <param name="areaService">areaService</param> /// <param name="parameterValueService">parameterValueService</param> public ConditionController(IParameterService parameterService, IAreaService areaService, IParameterValueService parameterValueService) { _parameterService = parameterService; _areaService = areaService; _parameterValueService = parameterValueService; }