protected virtual Icon.IconType GetType(XmlDeserializer deserializer)
        {
            var typeStr = deserializer.GetString(TypeInfo);

            if (typeStr.Equals(UploadTypeString, StringComparison.InvariantCultureIgnoreCase))
            {
                return(Icon.IconType.Upload);
            }
            else if (typeStr.Equals(EncounterImageTypeString, StringComparison.InvariantCultureIgnoreCase))
            {
                return(Icon.IconType.EncounterImage);
            }
            else
            {
                return(Icon.IconType.Resource);
            }
        }
 protected virtual string GetImageData(XmlDeserializer deserializer)
 => deserializer.GetString(DataName);
 protected virtual string GetReference(XmlDeserializer deserializer)
 => deserializer.GetString(ReferenceInfo);
Beispiel #4
0
 protected virtual string GetIconKey(XmlDeserializer deserializer)
 => deserializer.GetString(IconKeyInfo);
Beispiel #5
0
 protected virtual string GetName(XmlDeserializer deserializer)
 => deserializer.GetString(NameInfo);
 protected virtual string GetType(XmlDeserializer deserializer)
 => deserializer.GetString(TypeInfo);