A little help ? (2 Viewers)

wizard123

Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #41
    Amazing thank you just tested and works perfectly :)
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #43
    If i wanted to build on this now and have say instead of one image property have 3 using different folders for images would i need to duplicate all the previous code but changing the strings etc or just parts of it ?
     

    Ministerk

    Super User
  • Team MediaPortal
  • Super User
  • November 28, 2007
    970
    826
    Uppsala
    Home Country
    Sweden Sweden
    Should it be something dynamical?

    One idea could be that you use subfolders to ImagePlugin-folder.

    For each subfolder create an object you have defined yourself e.g. internal class ImageContainer that contains the sub-folder-image-list, counter and folder-name properties/members. Add all of them to a global defined List<ImageContainer> ImageContainerList;

    Loop over the ImageContainerList, construct property names: "#ImagePlugin." + current-foldername + ".1" and "#ImagePlugin." + current-foldername + ".2".

    Maybe...

    Edit:
    Otherwise introduce some kind of configuration, pointing out folders an connect them to properties.
     

    Users who are viewing this thread

    Top Bottom