/// <summary> /// Add a SecondaryWFImage to the card /// </summary> /// <returns>SecondaryWFImage that was added</returns> public SecondaryWFImage AddImage() { SecondaryWFImage sImage = new SecondaryWFImage(); sImage.QslCard = QslCard; sImage.IsSelected = true; QslCard.SecondaryImages.Add(sImage); return sImage; }
/// <summary> /// Create a SecondaryWFImage object based on an XmlNode for it from /// an XQSL file /// </summary> /// <param name="card">The CardWF object that will contain the image</param> /// <param name="node">XmlNode containing the SecondaryImage data</param> /// <param name="culture">CultureInfo object that describes the culture /// that the XQSL file was saved with</param> /// <returns>The created SecondaryWFImage object or null if ImageFileName is empty string</returns> private static SecondaryWFImage CreateSecondaryImage(CardWF card, XmlNode node, CultureInfo culture) { SecondaryWFImage sImage = new SecondaryWFImage(); sImage.QslCard = card; XmlNode siNode = XmlProcs.GetFirstChildElement(node); switch(siNode.Name) { case "CardImageBase": CreateCardImageBase(sImage, siNode, culture); break; } return sImage; }
/// <summary> /// Make a deep copy of this SecondaryWFImage object /// </summary> /// <returns>SecondaryWFImage object that is a deep copy of this one</returns> public SecondaryWFImage Clone() { SecondaryWFImage image = new SecondaryWFImage(); image.CopyImageBaseProperties(this); return image; }