/// <summary> /// Adds a SignedAnalog processor to this manager instance. /// </summary> /// <param name="proc">The processor to add.</param> public void AddSignedAnalog(SignedAnalogProcessor proc) { using (var secure = new CCriticalSection()) { if (SignedAnalogProcessors == null) { SignedAnalogProcessors = new List <SignedAnalogProcessor>(); } SignedAnalogProcessors.Add(proc); Debug.PrintLine("Added signed analog XML processor."); } }
/// <summary> /// Writes a single SignedAnalogElement to the XML Document in memory. /// </summary> /// <param name="item">The SignedAnalogElement to write.</param> /// <returns>True if successful, false if it fails.</returns> public bool WriteSignedAnalogs(SignedAnalogProcessor item) { var status = true; for (var i = 0; i < item.Elements.Count; i++) { if (WriteElement(item.Elements[i]) == false) { status = false; } } return(status); }