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(); }
/// <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(); }
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); } }
/// <summary> /// Creates new instance of <see cref="SignOutCommand"/> /// </summary> public SignOutCommand() { // setting fields this._tokenProvider = ((App)App.Current).TokenProvider; this._hyperlinkService = new HyperLinkService(); }