/// <summary>
        /// Creates an exporter statement(in microsoft word)
        /// </summary>
        public void CreateExporterStatement(IDocumentCreator documentCreator, IFileHandler fileHandler, string companyInformation, string exporterStatementTitle,
                                            string exporterStatementContent1, string exporterStatementContent2, string exporterStatementContent3, string salesAgentName, string stampSignatureFilePath)
        {
            string folderPath = fileHandler.GetFolderPathToHandleFiles();

            if (documentCreator.ValidateFields(companyInformation, exporterStatementTitle, exporterStatementContent1, exporterStatementContent2,
                                               exporterStatementContent3, salesAgentName, stampSignatureFilePath, folderPath))
            {
                documentCreator.CreateExporterStatement(companyInformation, exporterStatementTitle, exporterStatementContent1, exporterStatementContent2,
                                                        exporterStatementContent3, salesAgentName, stampSignatureFilePath, folderPath);
            }
        }
Exemple #2
0
 /// <summary>
 /// Create Exporter Statement
 /// </summary>
 private void ExporterStatementButton_Click(object sender, EventArgs e)
 {
     pathToSaveFiles = fileHandler.GetFolderPathToHandleFiles();
     if (documentCreator.ValidateFields(CompanyInformationRichTextBox.Text, ExporterStatementTitleTextBox.Text,
                                        ExporterStatementContent1RichTextBox.Text, ExporterPurchaseDocumentsRichTextBox.Text,
                                        ExporterStatementContent2RichTextBox.Text, SalesAgentNameTextBox.Text, StampSignaturePathTextBox.Text, pathToSaveFiles))
     {
         documentCreator.CreateExporterStatement(CompanyInformationRichTextBox.Text, ExporterStatementTitleTextBox.Text,
                                                 ExporterStatementContent1RichTextBox.Text, ExporterPurchaseDocumentsRichTextBox.Text,
                                                 ExporterStatementContent2RichTextBox.Text,
                                                 SalesAgentNameTextBox.Text, StampSignaturePathTextBox.Text, pathToSaveFiles);
     }
 }