/// <summary> /// Initializes a new instance of the <see cref="PagesController"/> class. /// </summary> public PagesController() { pageService = ServiceLocator.Current.GetInstance<IPageService>(); permissionService = ServiceLocator.Current.GetInstance<IPermissionCommonService>(); permissionHelper = ServiceLocator.Current.GetInstance<IPermissionsHelper>(); }
public WidgetController(ILog logger, IConfigurationService configurationService, IPostService postService, ICategoryService categoryService, IPageService pageService) : base(logger, configurationService) { this.postService = postService; this.categoryService = categoryService; this.pageService = pageService; }
public PageController(ILog logger, IConfigurationService configurationService, IPageService pageService, IUrlBuilder urlBuilder, IRoutingService routingService) : base(logger, configurationService) { this.pageService = pageService; this.urlBuilder = urlBuilder; this.routingService = routingService; }
/// <summary> /// Initializes a new instance of the <see cref="WebFrameworkController"/> class. /// </summary> /// <param name="domainService"> /// The domain service. /// </param> /// <param name="clientAssetTypeService"> </param> /// <param name="pageService"> /// The page service. /// </param> /// <param name="pageTemplateService"> /// The page template service. /// </param> /// <param name="pageTemplateZoneMapService"> /// The page template zone map service. /// </param> /// <param name="pageZoneService"> /// The page zone service. /// </param> /// <param name="partService"> /// The part service. /// </param> /// <param name="partTypeService"> /// The part type service. /// </param> /// <param name="seoDecoratorService"> /// The seo decorator service. /// </param> /// <param name="userService"> /// The user service. /// </param> /// <param name="clientAssetConfigService"> </param> /// <param name="clientAssetService"> </param> /// <param name="partContainerService"> </param> public WebFrameworkController( IDomainService domainService, IClientAssetConfigService clientAssetConfigService, IClientAssetService clientAssetService, IClientAssetTypeService clientAssetTypeService, IPageService pageService, IPageTemplateService pageTemplateService, IPageTemplateZoneMapService pageTemplateZoneMapService, IPageZoneService pageZoneService, IPartService partService, IPartTypeService partTypeService, ISeoDecoratorService seoDecoratorService, IUserService userService, IPartContainerService partContainerService) { this.modelBinder = new WebFrameworkServiceBinder( domainService, clientAssetConfigService, clientAssetService, clientAssetTypeService, pageService, pageTemplateService, pageTemplateZoneMapService, pageZoneService, partService, partTypeService, seoDecoratorService, userService, partContainerService); }
/// <summary> /// Will register appropriate Services for Dependency Injection. /// </summary> public async Task RegisterServices(INavigationArgs navigationArgs = null) { if (_pageService == null) _pageService = new PageService(); if (_navigationService == null) _navigationService = new ExtNavigationService(NavigationPage, _pageService); SimpleIoc.Default.Register<IExtNavigationService>(() => _navigationService); if (_dialogService == null) _dialogService = new DialogService(NavigationPage); SimpleIoc.Default.Register<IDialogService>(() => _dialogService); if (!_isFirstRun) { MapPages(); MapViewModels(); await _navigationService.NavigateTo(NavigationStartPageKey, navigationArgs); _isFirstRun = true; } }
public WebFrameworkServiceBinder( IDomainService domainService, IClientAssetConfigService clientAssetConfigService, IClientAssetService clientAssetService, IClientAssetTypeService clientAssetTypeService, IPageService pageService, IPageTemplateService pageTemplateService, IPageTemplateZoneMapService pageTemplateZoneMapService, IPageZoneService pageZoneService, IPartService partService, IPartTypeService partTypeService, ISeoDecoratorService seoDecoratorService, IUserService userService, IPartContainerService partContainerService) { this.domainService = domainService; this.clientAssetConfigService = clientAssetConfigService; this.clientAssetService = clientAssetService; this.clientAssetTypeService = clientAssetTypeService; this.pageService = pageService; this.pageTemplateService = pageTemplateService; this.pageTemplateZoneMapService = pageTemplateZoneMapService; this.pageZoneService = pageZoneService; this.partService = partService; this.partTypeService = partTypeService; this.seoDecoratorService = seoDecoratorService; this.userService = userService; this.partContainerService = partContainerService; }
public HomeController(ApplicationSettings settings, UserServiceBase userManager, MarkupConverter markupConverter, IPageService pageService, SearchService searchService, IUserContext context, SettingsService settingsService) : base(settings, userManager, context, settingsService) { _markupConverter = markupConverter; _searchService = searchService; PageService = pageService; }
public PageController( IAuthenticationService authenticationService, IPageService pageService, IContentRouteProvider contentRouteProvider) { _authenticationService = authenticationService; _pageService = pageService; _contentRouteProvider = contentRouteProvider; }
public SiteInitHelper() { skinService = new SkinService(); skinService.SetSkin( new SpaceSkin() ); feedService = new FeedService(); pageService = new PageService(); }
public HomeController(IPostService postService, IBookService bookService, IPageService pageService, ICategoryService categoryService) { _postService = postService; _bookService = bookService; _pageService = pageService; _categoryService = categoryService; }
public PantherContext(IServiceProvider services, IPantherRouter router, IPantherFileSystem fileSystem) { Services = services; FileSystem = fileSystem; Router = router; this.siteService = new SiteService(this); this.pageService = new PageService(this); }
public PageController(CoreSettings coreSettings, IPermissionService permissionService, IPageService pageService, IWorkContext workContext, IMediaService mediaService, IWebHelper webHelper) { _coreSettings = coreSettings; _mediaService = mediaService; _pageService = pageService; _permissionService = permissionService; _webHelper = webHelper; _workContext = workContext; }
public AuthenticationStack(IExtNavigationService navigationService, IExtDialogService dialogService, IPageService pageService) : base(navigationService, dialogService, pageService) { var navPage = new NavigationPage(); // Disable NavigationBar on all pages within this Stack. navPage.Pushed += (s, e) => { NavigationPage.SetHasNavigationBar(e.Page, false); }; MainPage = NavigationPage = navPage; }
public PageModule(IPageService pageService,IMapper mapper): base("/pages") { if (pageService == null) { throw new ArgumentNullException(nameof(pageService)); } this.pageService = pageService; this.mapper = mapper; Get["/"] = _ => { var pages = pageService.GetAll().ToList(); var pagesViewModel = mapper.Map<IEnumerable<Page>, IEnumerable<PageViewModel>>(pages); return pagesViewModel; }; Get["/{id}"] = parameter => pageService.GetById(parameter.id) ?? HttpStatusCode.NotFound; Post["/"] = _ => { var page = this.Bind<Page>(); page = pageService.Add(page); return page; }; Put["/{id}"] = parameter => { var page = this.Bind<Page>(); page.PageId = parameter.id; bool isUpdated = pageService.Update(page); return isUpdated ? HttpStatusCode.OK : HttpStatusCode.NotFound; }; Delete["/{id}"] = parameter => { var page = new Page() { PageId = parameter.id }; bool isDeleted = pageService.Remove(page); return isDeleted ? HttpStatusCode.OK : HttpStatusCode.NotFound; }; Post["/insert"] = _ => { var pages = this.Bind<IEnumerable<Page>>(); pageService.Insert(pages); return HttpStatusCode.OK; }; }
public MetaWeblogHandler() { this.categoryService = DexterContainer.Resolve<ICategoryService>(); this.configurationService = DexterContainer.Resolve<IConfigurationService>(); this.pageService = DexterContainer.Resolve<IPageService>(); this.postService = DexterContainer.Resolve<IPostService>(); this.routingService = DexterContainer.Resolve<IRoutingService>(); this.urlBuilder = DexterContainer.Resolve<IUrlBuilder>(); }
public BlogPostPropertiesService(IRepository repository, IMediaFileUrlResolver fileUrlResolver, IBlogSaveService blogSaveService, ISecurityService securityService, IPageService pageService) { this.repository = repository; this.fileUrlResolver = fileUrlResolver; this.blogSaveService = blogSaveService; this.securityService = securityService; this.pageService = pageService; }
public PagesController(ApplicationSettings settings, UserServiceBase userManager, SettingsService settingsService, IPageService pageService, SearchService searchService, PageHistoryService historyService, IUserContext context) : base(settings, userManager, context, settingsService) { _settingsService = settingsService; _pageService = pageService; _searchService = searchService; _historyService = historyService; }
public DefaultPageCloneService(IPageService pageService, IUrlService urlService, ISecurityService securityService, IAccessControlService accessControlService, IRepository repository, IUnitOfWork unitOfWork) { this.pageService = pageService; this.urlService = urlService; this.securityService = securityService; this.accessControlService = accessControlService; this.unitOfWork = unitOfWork; this.repository = repository; }
public MainStack(IExtNavigationService navigationService, IExtDialogService dialogService, IPageService pageService): base(navigationService, dialogService, pageService) { NavigationPage = new NavigationPage(); MainPage = new MasterDetailPage() { BackgroundColor = Color.Transparent, Master = BuildMenuPage(), Detail = NavigationPage }; }
public InstallController(IEventService eventService, IMenuService menuService, IPageService pageService, IPostService postService, ISettingService settingService, IStateService stateService, ITenantService tenantService) { _eventService = eventService; _menuService = menuService; _pageService = pageService; _postService = postService; _settingService = settingService; _stateService = stateService; _tenantService = tenantService; }
public PantherSiteMapMiddleware(RequestDelegate next, IServiceProvider serviceProvider, IPantherContext context, IPageService pageService ) { this.next = next; this.serviceProvider = serviceProvider; this.pageService = pageService; this.context = context; }
public WebCoreServiceBinder( IPageService pageService, ISeoDecoratorService seoDecoratorService, ISeoRouteValueService seoRouteValueService, IDomainService domainService) { this.pageService = pageService; this.seoDecoratorService = seoDecoratorService; this.seoRouteValueService = seoRouteValueService; this.domainService = domainService; }
public CommentController(IUnitOfWork uow, ICommentService commentService, IOptionService optionService, IPostService postService, IUserService userService, IPageService pageService, IArticleService articleService, IEmailService emailService) { _uow = uow; _commentService = commentService; _optionService = optionService; _postService = postService; _pageService = pageService; _userService = userService; _articleService = articleService; _emailService = emailService; }
public AdminPageController(ILog log, IContentItemService<Page> contentItemService, ICategoryService categoryService, ISearchService searchService, ITagService tagService, IPageService pageService, ILocalizationService localizationService, IUserService userService, ISiteService siteService) : base(log, localizationService, userService, siteService) { this.log = log; this.contentItemService = contentItemService; this.pageService = pageService; this.searchService = searchService; }
public BlogPostPropertiesService(IRepository repository, IMediaFileUrlResolver fileUrlResolver, IBlogSaveService blogSaveService, ISecurityService securityService, IPageService pageService, Module.Root.Services.IOptionService optionService, BetterCms.Module.Root.Services.ICategoryService categoriesService) { this.repository = repository; this.fileUrlResolver = fileUrlResolver; this.blogSaveService = blogSaveService; this.securityService = securityService; this.pageService = pageService; this.optionService = optionService; this.categoriesService = categoriesService; }
public HomeController(IBannerService bannerService, IProductService productService, IProServiceService proServiceService, INewsService newsService, IFaqService faqService, IGalleryService galleryService, ISettingService settingService, IContactService contactService, IPageService pageService, IUnitOfWork uow) : base(settingService, contactService, pageService, proServiceService, uow) { _bannerService = bannerService; _productService = productService; _proServiceService = proServiceService; _newsService = newsService; _faqService = faqService; _galleryService = galleryService; _pageService = pageService; _contactService = contactService; }
public ApplicationService(IDocumentSession session, IPageService pageService, ITemplateService templateService, IFolderService folderService, IPluginService pluginService, IMembershipService membershipService, IFormsAuthenticationService formsService) : base(session) { this.pageService = pageService; this.pluginService = pluginService; this.templateService = templateService; this.folderService = folderService; this.membershipService = membershipService; this.formsService = formsService; }
/// <summary> /// Initializes a new instance of the <see cref="PageDefinitionServiceBinder"/> class. /// </summary> /// <param name="pageService"> /// The page service. /// </param> /// <param name="pageTemplateService"> /// The page template service. /// </param> public PageDefinitionServiceBinder( IPageService pageService, IPageTemplateService pageTemplateService, IPageTemplateZoneMapService templateZoneMapService, IPartService partService, IPartTypeService partTypeService) { this.pageService = pageService; this.pageTemplateService = pageTemplateService; this.templateZoneMapService = templateZoneMapService; this.partService = partService; this.partTypeService = partTypeService; }
public PageHandler(IPageService pageService, IOrchardServices orchardServices) { _pageService = pageService; _orchardServices = orchardServices; T = NullLocalizer.Instance; Filters.Add(new ActivatingFilter<Page>(PageDriver.ContentType.Name)); Filters.Add(new ActivatingFilter<CommonAspect>(PageDriver.ContentType.Name)); Filters.Add(new ActivatingFilter<ContentPart<CommonVersionRecord>>(PageDriver.ContentType.Name)); Filters.Add(new ActivatingFilter<RoutableAspect>(PageDriver.ContentType.Name)); Filters.Add(new ActivatingFilter<BodyAspect>(PageDriver.ContentType.Name)); OnLoaded<Page>((context, page) => page._scheduledPublishUtc.Loader(value => _pageService.GetScheduledPublishUtc(page))); }
public DefaultBlogMLService(IRepository repository, IUrlService urlService, IBlogService blogService, IUnitOfWork unitOfWork, IRedirectService redirectService, IPageService pageService, ICmsConfiguration cmsConfiguration, IHttpContextAccessor httpContextAccessor) { this.repository = repository; this.urlService = urlService; this.blogService = blogService; this.pageService = pageService; this.unitOfWork = unitOfWork; this.redirectService = redirectService; this.cmsConfiguration = cmsConfiguration; this.httpContextAccessor = httpContextAccessor; }
public ContactDetailsViewModel(ContactViewModel viewModel, IContactStore contactStore, IPageService pageService) { if (viewModel == null) { throw new ArgumentNullException(nameof(viewModel)); } _pageService = pageService; _contactStore = contactStore; SaveCommand = new Command(async() => await Save()); Contact = new Contact { Id = viewModel.Id, FirstName = viewModel.FirstName, LastName = viewModel.LastName, PhoneNumber = viewModel.PhoneNumber, Email = viewModel.Email, IsBlocked = viewModel.IsBlocked }; }
public BlogMLExporter(ILogger <BlogMLExporter> logger, IPostService postService, IPageService pageService, ICategoryService categoryService, ITagsService tagsService, ICommentService commentService, ISlugService slugService, BlogUserManager userManager, BasicSettings basicSettings) { _logger = logger; _postService = postService; _pageService = pageService; _categoryService = categoryService; _tagsService = tagsService; _commentService = commentService; _slugService = slugService; _userManager = userManager; _basicSettings = basicSettings; }
public WebsiteProductUrlProvider(IPageService pageService, ISiteConfiguration siteConfiguration) { PageService = pageService; SiteConfiguration = siteConfiguration; }
/// <summary> /// Provides a link to the page with the provided title, querying it in the database first, /// with optional prefix and suffix tags or seperators and html attributes. /// </summary> /// <param name="htmlAttributes">Any additional html attributes to add to the link</param> /// <returns>If the page is not found, the link text is returned.</returns> public static MvcHtmlString PageLink(this HtmlHelper helper, string linkText, string pageTitle, object htmlAttributes, string prefix, string suffix, IPageService pageService = null) { if (pageService == null) { pageService = LocatorStartup.Locator.GetInstance <IPageService>(); } PageViewModel model = pageService.FindByTitle(pageTitle); if (model != null) { string link = helper.ActionLink(linkText, "Index", "Wiki", new { id = model.Id, title = pageTitle }, htmlAttributes).ToString(); return(MvcHtmlString.Create(prefix + link + suffix)); } else { return(MvcHtmlString.Create(linkText)); } }
public Navbar_Search_ViewModel(IPageService pageService) { _pageService = pageService; SearchTxtCommand = new Command(txt => SearchTxtAction(txt)); }
public PageController(ISiteService siteService, IPageService pageService, IContentService contentService) { this.siteService = siteService; this.pageService = pageService; this.contentService = contentService; }
public SearchController(ICategoryService categoryService, IPostService postService, IPageService pageService, INotificationService notificationService) : base(notificationService) { this.categoryService = categoryService; this.postService = postService; this.pageService = pageService; }
public NavigationViewService(INavigationService navigationService, IPageService pageService) { _navigationService = navigationService; _pageService = pageService; }
public PopupService(IPageService pageService) { _pageService = pageService; }
public PageController(IPageService service) { this.service = service; }
public StudentProfileViewModel(IPageService pageService, int StudentId) { _pageService = pageService; }
public ArticleListWidgetService(IWidgetBasePartService widgetService, IArticleTypeService articleTypeService, IArticleService articleService, IApplicationContext applicationContext, IPageService pageService, CMSDbContext dbContext) : base(widgetService, applicationContext, dbContext) { _articleTypeService = articleTypeService; _articleService = articleService; _pageService = pageService; }
public MainStack(IExtNavigationService navigationService, IExtDialogService dialogService, IPageService pageService) : base(navigationService, dialogService, pageService) { NavigationPage = new NavigationPage(); MainPage = new MasterDetailPage() { BackgroundColor = Color.Transparent, Master = BuildMenuPage(), Detail = NavigationPage }; }
public ModalService(IPageService pageService) { _pageService = pageService; }
public SectionController(ISectionService sectionService, IPageService pageService) : base(pageService) { _sectionService = sectionService; }
public AdvertisementController(IAdvertisementPlanService advertisementPlanService, ICommentService commentService, IPageService pageService) { _advertisementPlanService = advertisementPlanService; _commentService = commentService; _pageService = pageService; }
public ListExplorer(IBundleService bundleService , IIconResourceService iconResourceService , IPartRegistry partRegistry , IPageService pageService , IVirtualFileSystem virtualFileSystem , IViewPart viewPart) { m_BundleService = bundleService; m_IconResourceService = iconResourceService; m_PartRegistry = partRegistry; m_PageService = pageService; m_ToolStripFactory = pageService.PageLayoutProvider.ToolbarFactory; m_VirtualFileSystem = virtualFileSystem; m_viewPart = viewPart; InitializeComponent(); DataExplorerConfiguration config = null; System.IO.TextReader textReader = new System.IO.StringReader(m_viewPart.ConfigurationXml); using (XmlReader reader = XmlReader.Create(textReader, XmlUtils.CreateFragmentReaderSettings(), XmlUtils.CreateParserContext())) { config = XmlUtils.ReadElement <DataExplorerConfiguration>(reader, "dataExplorer"); } foreach (ColumnModelConfiguration columnConfiguration in config.Table.Columns) { IFieldDescriptor descriptor = CreateDescriptor(columnConfiguration.Type); if (!string.IsNullOrEmpty(columnConfiguration.Text)) { descriptor.Column.Text = columnConfiguration.Text; } if (!string.IsNullOrEmpty(columnConfiguration.Format)) { descriptor.Column.Format = columnConfiguration.Format; } if (!string.IsNullOrEmpty(columnConfiguration.Alignment)) { descriptor.Column.Alignment = (ColumnAlignment)Enum.Parse(typeof(ColumnAlignment), columnConfiguration.Alignment); } if (0 > columnConfiguration.Width) { descriptor.Column.Width = columnConfiguration.Width; } if (0 > columnConfiguration.ContentWidth) { descriptor.Column.ContentWidth = columnConfiguration.ContentWidth; } if (!string.IsNullOrEmpty(columnConfiguration.Image)) { descriptor.Column.Image = iconResourceService.GetImage(columnConfiguration.Image); } if (!columnConfiguration.ImageOnRight) { descriptor.Column.ImageOnRight = columnConfiguration.ImageOnRight; } if (!columnConfiguration.Visible) { descriptor.Column.Visible = columnConfiguration.Visible; } if (!columnConfiguration.Sortable) { descriptor.Column.Sortable = columnConfiguration.Sortable; } if (!columnConfiguration.Resizable) { descriptor.Column.Resizable = columnConfiguration.Resizable; } //if (!string.IsNullOrEmpty(columnConfiguration.DefaultComparerType)) // descriptor.Column.DefaultComparerType = Type.GetType( columnConfiguration.DefaultComparerType ); //if (!string.IsNullOrEmpty(columnConfiguration.SortOrder)) // descriptor.Column.SortOrder =(SortOrder)Enum.Parse(typeof(SortOrder), columnConfiguration.SortOrder ); if (!columnConfiguration.Editable) { descriptor.Column.Editable = columnConfiguration.Editable; } if (!columnConfiguration.Enabled) { descriptor.Column.Enabled = columnConfiguration.Enabled; } if (!columnConfiguration.Selectable) { descriptor.Column.Selectable = columnConfiguration.Selectable; } if (!string.IsNullOrEmpty(columnConfiguration.ToolTipText)) { descriptor.Column.ToolTipText = columnConfiguration.ToolTipText; } _fieldDescriptors.Add(descriptor); } }
public NavigationService(IAccessTokenManager accessTokenManager, IPageService pageService) { _accessTokenManager = accessTokenManager; _pageService = pageService; }
public SitemapController(IPageService pageService, IPantherContext context) { this.pageService = pageService; this.context = context; }
public BreadcrumbWidgetService(IWidgetBasePartService widgetBasePartService, IApplicationContext applicationContext, IPageService pageService, CMSDbContext dbContext) : base(widgetBasePartService, applicationContext, dbContext) { _pageService = pageService; }
public SectionController(IPageSectionService sectionService, IImageService imageService, IRoleService roleService, IPageAssociationService associationService, IPageService pageService) { _sectionService = sectionService; _imageService = imageService; _roleService = roleService; _associationService = associationService; _pageService = pageService; }
/// <summary> /// Initializes a new instance of the <see cref="PagesController"/> class. /// </summary> public PagesController() { pageService = ServiceLocator.Current.GetInstance <IPageService>(); permissionService = ServiceLocator.Current.GetInstance <IPermissionCommonService>(); permissionHelper = ServiceLocator.Current.GetInstance <IPermissionsHelper>(); }
public PageController(IPageService pageService, ITemplateService templateService, ILanguageService languageService) { this.pageService = pageService; this.templateService = templateService; this.languageService = languageService; }
public FooterMenuViewComponent(IPageService pageService) { _pageService = pageService; }
public RightPaneService(IPageService pageService) { _pageService = pageService; }
public PageController(IPageService pageService) { this._pageService = pageService; }
public PageLinkResolver() { _pageService = HostContainer.GetInstance <IPageService>(); _widgetTemplateService = HostContainer.GetInstance <IWidgetTemplateService>(); _widgetService = HostContainer.GetInstance <IWidgetService>(); }
public WindowManagerService(IServiceProvider serviceProvider, IPageService pageService) { _serviceProvider = serviceProvider; _pageService = pageService; }
public MessageExplorerWidget(IBundleService bundleService , IIconResourceService iconResourceService , IDbSessionFactory sessionFactory , IPartRegistry partRegistry , IPageService pageService , IVirtualFileSystem virtualFileSystem , IViewPart viewPart) { m_BundleService = bundleService; m_IconResourceService = iconResourceService; m_sessionFactory = sessionFactory; m_PartRegistry = partRegistry; m_PageService = pageService; m_ToolStripFactory = pageService.PageLayoutProvider.ToolbarFactory; m_VirtualFileSystem = virtualFileSystem; m_viewPart = viewPart; InitializeComponent(); m_image_mail = iconResourceService.GetImage("jingxian.ui.icons.mail.png"); m_image_open_mail = iconResourceService.GetIcon("jingxian.ui.icons.maillist.open_mail.ico").ToBitmap(); m_image_close_mail = iconResourceService.GetIcon("jingxian.ui.icons.maillist.close_mail.ico").ToBitmap(); m_image_litter_point = iconResourceService.GetImage("jingxian.ui.icons.maillist.litter_point.png"); m_image_big_point = iconResourceService.GetImage("jingxian.ui.icons.maillist.big_point.png"); m_image_spam = iconResourceService.GetImage("jingxian.ui.icons.maillist.spam.png"); m_image_red_flag = iconResourceService.GetImage("jingxian.ui.icons.maillist.red_flag.png"); m_image_gray_flag = iconResourceService.GetImage("jingxian.ui.icons.maillist.gray_flag.png"); m_image_right = iconResourceService.GetImage("jingxian.ui.icons.maillist.right.png"); m_image_open_mail = iconResourceService.GetIcon("jingxian.ui.icons.maillist.open_mail.ico").ToBitmap(); m_image_close_mail = iconResourceService.GetIcon("jingxian.ui.icons.maillist.close_mail.ico").ToBitmap(); m_image_litter_point = iconResourceService.GetBitmap("jingxian.ui.icons.maillist.litter_point.png"); m_image_big_point = iconResourceService.GetBitmap("jingxian.ui.icons.maillist.big_point.png"); m_image_spam = iconResourceService.GetBitmap("jingxian.ui.icons.maillist.spam.png"); m_image_red_flag = iconResourceService.GetBitmap("jingxian.ui.icons.maillist.red_flag.png"); m_image_gray_flag = iconResourceService.GetBitmap("jingxian.ui.icons.maillist.gray_flag.png"); m_image_right = iconResourceService.GetBitmap("jingxian.ui.icons.maillist.right.png"); LoadAllMessages(); string startView = null; System.IO.TextReader textReader = new System.IO.StringReader(m_viewPart.ConfigurationXml); using (XmlReader reader = XmlReader.Create(textReader, XmlUtils.CreateFragmentReaderSettings(), XmlUtils.CreateParserContext())) { if (reader.IsStartElement("view")) { startView = XmlUtils.ReadRequiredAttributeString(reader, "ref"); } } if (string.IsNullOrEmpty(startView)) { return; } IWorkbenchPart welcomePart; m_PartRegistry.TryGet(jingxian.ui.Constants.WelcomeId, out welcomePart); if (null == welcomePart) { return; } UserControl control = new UserControl(); control.BorderStyle = BorderStyle.Fixed3D; control.Dock = DockStyle.Fill; this.m_splitter.Panel2.Controls.Add(control); Control welcomePage = welcomePart.Widget; welcomePage.Dock = DockStyle.Fill; control.Controls.Add(welcomePage); }
public PageController(IPageService pageService) => _pageService = pageService;