private void SaveUpdateValidate(Area area, ILayoutService ls, ISeatService ss) { var lsAll = ls.GetAll(); var ssAll = ss.GetAll(); var all = GetAll(); if (!(from x in lsAll where x.Id == area.LayoutId select x).Any()) { throw new Exception("No such layout"); } var areaLowerSet = from x in all where x.LayoutId == area.LayoutId && (x.CoordX < area.CoordX || x.CoordY < area.CoordY) select x; if (areaLowerSet.Any()) { foreach (var v in areaLowerSet.ToList()) { var seatSet = from x in ssAll where x.AreaId == v.Id select x; if (seatSet.Any()) { if (v.CoordX + seatSet.Max(x => x.Row) > area.CoordX || v.CoordY + seatSet.Max(x => x.Number) > area.CoordY) { throw new Exception("Area coords out of range"); } } } } }
/// <summary> /// Initializes a new instance of the <see cref="AddNewPageCommand" /> class. /// </summary> /// <param name="LayoutService">The layout service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="securityService">The security service.</param> public AddNewPageCommand(ILayoutService LayoutService, ICmsConfiguration cmsConfiguration, IAccessControlService accessControlService, ISecurityService securityService) { layoutService = LayoutService; this.cmsConfiguration = cmsConfiguration; this.accessControlService = accessControlService; this.securityService = securityService; }
public HomeController(ILayoutService layoutService, IClientHomeService clientHomeService, IPostService postService, IDetailUserTypeService detailUser, IHaveSendQuestionService haveSendQuesService, IPostTypeService postTypeService, ICommentService commentOfPost, IPostVoteDetailService postVoteDetailService, IDetailUserTypeService detailUserType, ICommentVoteDetailService commentVoteDetailService, IToiecGroupService fbService, IEventService eventService ) : base(layoutService) { _clientHomeService = clientHomeService; _postService = postService; _detailUserTypeService = detailUser; _haveSendQuesService = haveSendQuesService; _postTypeService = postTypeService; _commentOfPost = commentOfPost; _postVoteDetailService = postVoteDetailService; _detailUserType = detailUserType; _commentVoteDetailService = commentVoteDetailService; _fbService = fbService; _eventService = eventService; initChatBotMenu(); }
public Worker(ILayoutService parent, string message) { _parent = parent; _parent.Message = new MarkupString($" {message}…"); _parent.Spinning = true; _parent.RaiseChange(); }
public static void Initialize(ILayoutService layoutService, ISecurityService securityService) { ServiceFactoryBase.SecurityService = SecurityService = securityService; Layout = layoutService; ContentService = new ContentService("Monitor"); DragDropService = new DragDropService(); }
public StatisticsController(ILayoutService layoutService, IClientStatisticsService clientStatisticsService ) : base(layoutService) { _clientStatisticsService = clientStatisticsService; }
public ActionResult LoadLayoutList(bool isHorizontal) { ILayoutService layoutService = DependencyUtils.Resolve <ILayoutService>(); var layoutList = layoutService.Get(a => a.isHorizontal == isHorizontal).ToList(); var layoutVMs = new List <Models.LayoutVM>(); if (layoutList != null) { foreach (var item in layoutList) { var l = new Models.LayoutVM { LayoutID = item.LayoutID, Title = item.Title, isHorizontal = item.isHorizontal, Description = item.Description, URL = item.URL, }; layoutVMs.Add(l); } } //return layoutVMs; return(Json(new { LayoutVMs = layoutVMs, }, JsonRequestBehavior.AllowGet)); }
public object ProvideValue(IServiceProvider serviceProvider) { if (s_layoutService == null) { s_layoutService = DependencyService.Get <ILayoutService>(); } if (s_layoutService == null) { System.Diagnostics.Debug.WriteLine("ScaledGridLength has no ILayoutService!"); var tc = new GridLengthTypeConverter(); return(tc.ConvertFromInvariantString(Length)); } if (Length == "*") { return(GridLength.Star); } else if (Length == "Auto") { return(GridLength.Auto); } else { double d; if (double.TryParse(Length, out d)) { return(new GridLength(s_layoutService.GetScaledDouble(d))); } throw new Exception("Unable to convert to GridLength: " + Length); } }
public GamesFeedViewModel( INavigationManager navigationManager, ILayoutService layoutService) { _navigationManager = navigationManager; _layoutService = layoutService; }
public ActionResult LoadLayout(int layoutId) { ILayoutService layoutService = DependencyUtils.Resolve <ILayoutService>(); string layoutSrc = ""; layoutSrc = layoutService.Get(a => a.LayoutID == layoutId).FirstOrDefault()?.LayoutSrc; return(PartialView(layoutSrc)); }
public LayoutCmsController(ILayoutService service) { if (!SecurityHelper.IsAdmin()) { throw new UnauthorizedAccessException(); } _layoutService = service; }
public FriendController(ILayoutService layoutService, IClientFriendService friendService, IApplicationUserService applicationUserService ) : base(layoutService) { _friendService = friendService; _applicationUserService = applicationUserService; }
public UserReport( ParametrosReport p_ParametrosReport, ILayoutService p_LayoutService, IUserService p_UserService ) : base(p_ParametrosReport, p_LayoutService) { _userService = p_UserService; }
/// <summary> /// Initializes a new instance of the <see cref="GetPagesListCommand" /> class. /// </summary> /// <param name="categoryService">The category service.</param> /// <param name="configuration">The configuration.</param> /// <param name="languageService">The language service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="layoutService">The layout service.</param> public GetPagesListCommand(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService) { this.configuration = configuration; this.categoryService = categoryService; this.languageService = languageService; this.accessControlService = accessControlService; this.layoutService = layoutService; }
public CalendarController(ILayoutService layoutService, IClientCalendarService clientCalendarService, IEventService eventService ) : base(layoutService) { _clientCalendarService = clientCalendarService; _eventService = eventService; }
/// <summary> /// Initializes a new instance of the <see cref="GetPagePropertiesCommand" /> class. /// </summary> /// <param name="tagService">The tag service.</param> /// <param name="categoryService">The category service.</param> /// <param name="optionService">The option service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="layoutService">The layout service.</param> public GetPagePropertiesCommand(ITagService tagService, ICategoryService categoryService, IOptionService optionService, ICmsConfiguration cmsConfiguration, ILayoutService layoutService) { this.tagService = tagService; this.categoryService = categoryService; this.optionService = optionService; this.cmsConfiguration = cmsConfiguration; this.layoutService = layoutService; }
public static void Initialize(ILayoutService ILayoutService, ISecurityService ISecurityService) { Events = new EventAggregator(); ResourceService = new ResourceService(); Layout = ILayoutService; SecurityService = ISecurityService; LoginService = new LoginService(ClientType.Monitor, "Оперативная задача. Авторизация."); SubscribeEvents(); }
public static void Initialize(ILayoutService ILayoutService, ISecurityService ISecurityService) { ServiceFactoryBase.Events = Events = new EventAggregator(); ServiceFactoryBase.SecurityService = SecurityService = ISecurityService; ResourceService = new ResourceService(); Layout = ILayoutService; LoginService = new LoginService(ClientType.Monitor, "Оперативная задача. Авторизация."); ContentService = new ContentService("Monitor"); }
public static void Initialize(ILayoutService layoutService, IValidationService validationService) { SaveService = new SaveService(); Layout = layoutService; ValidationService = validationService; ContentService = new ContentService("Administrator"); DragDropService = new DragDropService(); RibbonService = new RibbonService(); }
public static void Initialize(ILayoutService ILayoutService, IProgressService IProgressService, IValidationService IValidationService) { SaveService = new SaveService(); Events = new EventAggregator(); ResourceService = new ResourceService(); Layout = ILayoutService; ProgressService = IProgressService; ValidationService = IValidationService; LoginService = new LoginService(ClientType.Administrator, "Администратор. Авторизация"); }
/// <summary> /// Initializes a new instance of the <see cref="GetPagePropertiesCommand" /> class. /// </summary> /// <param name="tagService">The tag service.</param> /// <param name="categoryService">The category service.</param> /// <param name="optionService">The option service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="layoutService">The layout service.</param> /// <param name="fileUrlResolver">The file URL resolver.</param> public GetPagePropertiesCommand(ITagService tagService, ICategoryService categoryService, IOptionService optionService, ICmsConfiguration cmsConfiguration, ILayoutService layoutService, IMediaFileUrlResolver fileUrlResolver) { this.tagService = tagService; this.categoryService = categoryService; this.optionService = optionService; this.cmsConfiguration = cmsConfiguration; this.layoutService = layoutService; this.fileUrlResolver = fileUrlResolver; }
public DefaultUntranslatedPageListService(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService, IUnitOfWork unitOfWork, IRepository repository) : base(categoryService, configuration, languageService, accessControlService, layoutService, unitOfWork) { this.repository = repository; }
public DefaultRootApiOperations(ITagsService tags, ITagService tag, IVersionService version, ILayoutsService layouts, ILayoutService layout, ICategoriesService categories, ICategoryService category) { Tags = tags; Tag = tag; Categories = categories; Category = category; Version = version; Layouts = layouts; Layout = layout; }
public IndexModel( ILogger <IndexModel> logger, IConfiguration configuration, ClientIntegratorDbContext dbContext, ILayoutService layoutService) { this.logger = logger; this.configuration = configuration; this.dbContext = dbContext; this.layoutService = layoutService; }
public SubFundsController( IEntityService service, ILayoutService layoutService, SharedLocalizationService sharedLocalizer, IUserRepository <UserSubFundColumn> repository) { this.service = service; this.layoutService = layoutService; this.sharedLocalizer = sharedLocalizer; this.repository = repository; }
public NotificationController(ILayoutService layoutService, IClientNotificationService friendService, IApplicationUserService applicationUserService, INotificationService notificationService ) : base(layoutService) { _friendService = friendService; _applicationUserService = applicationUserService; _notificationService = notificationService; }
public DefaultPageListService(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService, IUnitOfWork unitOfWork) { this.configuration = configuration; this.categoryService = categoryService; this.languageService = languageService; this.accessControlService = accessControlService; this.layoutService = layoutService; this.unitOfWork = unitOfWork; }
public YourAccountController(ILayoutService layoutService, IApplicationUserService applicationUserService, IClientFriendService friendService, IClientNotificationService notificationService) : base(layoutService) { _applicationUserService = applicationUserService; UserManager = new UserManager <ApplicationUser>(new ApplicationUserStore(new ApplicationDbContext())); _friendService = friendService; _notificationService = notificationService; }
public HomeController(IDistributedCache distributedCache, ILayoutService layoutService, IPostServices postServices, IMainPageServices mainPageServices, IHostingEnvironment e, ILayoutApiClient layoutApiClient, IPostApiClient postApiClient, IMainPageApiClient mainPageApiClient) { _distributedCache = distributedCache; _layoutService = layoutService; _postServices = postServices; _mainPageServices = mainPageServices; he = e; _layoutApiClient = layoutApiClient; _postApiClient = postApiClient; _mainPageApiClient = mainPageApiClient; }
public PageController(IPageService service, ICookie cookie, IZoneService zoneService, ILayoutService layoutService, IWidgetBasePartService widgetService) : base(service) { _cookie = cookie; _zoneService = zoneService; _layoutService = layoutService; _widgetService = widgetService; }
public LayoutAdminController( IOrchardServices services, IContentManager contentManager, ILayoutService layoutService, IShapeFactory shapeFactory) { Services = services; _contentManager = contentManager; _layoutService = layoutService; T = NullLocalizer.Instance; Shape = shapeFactory; }
public LayoutTemplatePartDriver( ILayoutService layoutService, IStylesheetService stylesheetService, IContentDefinitionManager contentDefinitionManager, IContentManager contentManager) { _layoutService = layoutService; _stylesheetService = stylesheetService; _contentDefinitionManager = contentDefinitionManager; _contentManager = contentManager; T = NullLocalizer.Instance; }
/// <summary> /// Initializes a new instance of the <see cref="AddNewPageCommand" /> class. /// </summary> /// <param name="LayoutService">The layout service.</param> /// <param name="cmsConfiguration">The CMS configuration.</param> /// <param name="securityService">The security service.</param> /// <param name="optionService">The option service.</param> /// <param name="masterPageService">The master page service.</param> /// <param name="repository">The repository.</param> /// <param name="languageService">The language service.</param> public AddNewPageCommand(ILayoutService LayoutService, ICmsConfiguration cmsConfiguration, ISecurityService securityService, IOptionService optionService, IMasterPageService masterPageService, IRepository repository, ILanguageService languageService) { layoutService = LayoutService; this.cmsConfiguration = cmsConfiguration; this.securityService = securityService; this.optionService = optionService; this.masterPageService = masterPageService; this.repository = repository; this.languageService = languageService; }
public LearningController(ILayoutService layoutService, IClientLearningService clientLearningService, IDetailOurWordService detailOutWordService, IDictCacheService dictCache, IToiecGroupService toiecService ) : base(layoutService) { _clientLearningService = clientLearningService; _detailOutWordService = detailOutWordService; _dictCache = dictCache; _toiecService = toiecService; }
public DictionaryController(ILayoutService layoutService, IClientDictionaryService clientDictionaryService, IDetailOurWordService detailOutWordService, IDictCacheService dictCache, IEventService eventService ) : base(layoutService) { _clientDictionaryService = clientDictionaryService; _detailOutWordService = detailOutWordService; _dictCache = dictCache; _eventService = eventService; }
/// <summary> /// Initializes a new instance of the <see cref="GetUntranslatedPagesListCommand" /> class. /// </summary> /// <param name="categoryService">The category service.</param> /// <param name="configuration">The configuration.</param> /// <param name="languageService">The language service.</param> /// <param name="accessControlService">The access control service.</param> /// <param name="layoutService">The layout service.</param> public GetUntranslatedPagesListCommand(ICategoryService categoryService, ICmsConfiguration configuration, ILanguageService languageService, IAccessControlService accessControlService, ILayoutService layoutService) : base(categoryService, configuration, languageService, accessControlService, layoutService) { }
public LayoutsService(IRepository repository, ILayoutService layoutService) { this.repository = repository; this.layoutService = layoutService; }