コード例 #1
0
 private static void RemoveDuplication()
 {
     ConnectiveDeviceCalculation.RemoveDuplication(ConnectiveDeviceCalculation.GetElement());
     EquipmentCalculation.RemoveDuplication(EquipmentCalculation.GetElement());
     NetCalculation.RemoveDuplication(NetCalculation.GetElement());
     WireCalculation.RemoveDuplication(WireCalculation.GetElement());
 }
コード例 #2
0
 private static void RemovePHContentFileNameAttribute()
 {
     ConnectiveDeviceCalculation.RemovePHContentFileNameAttribute(ConnectiveDeviceCalculation.GetElement());
     EquipmentCalculation.RemovePHContentFileNameAttribute(EquipmentCalculation.GetElement());
     NetCalculation.RemovePHContentFileNameAttribute(NetCalculation.GetElement());
     WireCalculation.RemovePHContentFileNameAttribute(WireCalculation.GetElement());
 }
コード例 #3
0
        private static void CleanXMLElements()
        {
            ConnectiveDeviceCalculation.GetElement()?.RemoveAll();
            EquipmentCalculation.GetElement()?.RemoveAll();
            NetCalculation.GetElement()?.RemoveAll();
            WireCalculation.GetElement()?.RemoveAll();

            NetCalculation._correctDupTagNEO.Clear();
            NetCalculation._correctDupTagRATP.Clear();

            WireCalculation._correctDupTagNEO.Clear();
            WireCalculation._correctDupTagRATP.Clear();
        }
コード例 #4
0
        private static XDocument CreateXMLMappingFileDoc()
        {
            var mappingFile = new XDocument();

            mappingFile.Add(new XElement("MAPPING"));
            RemovePHContentFileNameAttribute();
            RemoveDuplication();
            UpdateDuplicatedTagForOtherObject();

            mappingFile.Root.Add(ConnectiveDeviceCalculation.GetElement());
            mappingFile.Root.Add(EquipmentCalculation.GetElement());
            mappingFile.Root.Add(NetCalculation.GetElement());
            mappingFile.Root.Add(WireCalculation.GetElement());

            return(mappingFile);
        }