Exemplo n.º 1
0
 public BackWorker(MainFormOption mainFormOption)
 {
     this.pageSettingService  = new PageSettingService();
     this.headerFooterService = new HeaderFooterService();
     this.docInfoService      = new DocInfoService();
     this.textReplaceService  = new TextReplaceService();
     this.paragraphService    = new ParagraphService();
     this.imageService        = new ImageService();
     this.hyperLinkService    = new HyperLinkService();
     this.tableService        = new TableService();
     this.pdfService          = new PdfService();
     this.mainFormOption      = mainFormOption;
     this.logger = LogManager.GetCurrentClassLogger();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates new instance of <see cref="SignInCommand"/>
        /// </summary>
        public SignInCommand(SignInViewModel signInViewModel)
        {
            // getting current app
            var app = ((App)App.Current);

            // setting fields
            this._tokenProvider     = app.TokenProvider;
            this._vm                = signInViewModel;
            this._isSignInAvailable = true;

            // initializing components
            this._userInfoLoader   = new UserInfoLoader();
            this._hyperLinkService = new HyperLinkService();
        }
Exemplo n.º 3
0
        public static void ExtractSet(DocX document, ImageService imageService, HyperLinkService hyperLinkService,
                                      TableService tableService, FormValOption formValOption)
        {
            string output = formValOption.OutPutFolder;

            if (formValOption.ExtractImageCheckBox)
            {
                imageService.extractImages(document, output);
            }
            if (formValOption.ExtractHyperLinkCheckBox)
            {
                hyperLinkService.extractHyperLink(document, output);
            }
            if (formValOption.ExtractTable)
            {
                tableService.extractTable(document, output);
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Creates new instance of <see cref="SignOutCommand"/>
 /// </summary>
 public SignOutCommand()
 {
     // setting fields
     this._tokenProvider    = ((App)App.Current).TokenProvider;
     this._hyperlinkService = new HyperLinkService();
 }