Exemple #1
0
        public void SaveInputsItemData(LicenseTextInputsItemsData WritingInputsItemData)
        {
            LoadFile();

            var LoadedInputsItemsElement = _loadedXMLFileInstance.XPathSelectElement("/document");

            LoadedInputsItemsElement.SetElementValue("Header", WritingInputsItemData.HeaderText);
            LoadedInputsItemsElement.SetElementValue("Footer", WritingInputsItemData.FooterText);
            LoadedInputsItemsElement.SetElementValue("ExportFolder", WritingInputsItemData.ExportingDirectory);
            LoadedInputsItemsElement.SetElementValue("ExportingFileName", WritingInputsItemData.FileName);

            _loadedXMLFileInstance.Save(StoringDataFilePath.GetInstance().LicenseTextInputsItemsFileAbsolutePath);
        }
Exemple #2
0
        /// <summary>
        /// ファイルから入力項目を読み込む。
        /// </summary>
        /// <param name="MaterialName"></param>
        /// <returns></returns>
        public LicenseTextInputsItemsData LoadInputsItemData()
        {
            LoadFile();

            LicenseTextInputsItemsData ReturnedLicenseTextInputsItemsData = new LicenseTextInputsItemsData();
            var LoadedInputsItemsElement = _loadedXMLFileInstance.XPathSelectElement("/document");

            ReturnedLicenseTextInputsItemsData.HeaderText         = LoadedInputsItemsElement.Element("Header").Value;
            ReturnedLicenseTextInputsItemsData.FooterText         = LoadedInputsItemsElement.Element("Footer").Value;
            ReturnedLicenseTextInputsItemsData.ExportingDirectory = LoadedInputsItemsElement.Element("ExportFolder").Value;
            ReturnedLicenseTextInputsItemsData.FileName           = LoadedInputsItemsElement.Element("ExportingFileName").Value;

            return(ReturnedLicenseTextInputsItemsData);
        }