private static void RemoveDuplication() { ConnectiveDeviceCalculation.RemoveDuplication(ConnectiveDeviceCalculation.GetElement()); EquipmentCalculation.RemoveDuplication(EquipmentCalculation.GetElement()); NetCalculation.RemoveDuplication(NetCalculation.GetElement()); WireCalculation.RemoveDuplication(WireCalculation.GetElement()); }
private static void RemovePHContentFileNameAttribute() { ConnectiveDeviceCalculation.RemovePHContentFileNameAttribute(ConnectiveDeviceCalculation.GetElement()); EquipmentCalculation.RemovePHContentFileNameAttribute(EquipmentCalculation.GetElement()); NetCalculation.RemovePHContentFileNameAttribute(NetCalculation.GetElement()); WireCalculation.RemovePHContentFileNameAttribute(WireCalculation.GetElement()); }
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(); }
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); }