//
 public void open()
 {
     WallpaperServiceConfig config = new WallpaperServiceConfig();
     config.load("%plugins%LocalDirectories.conf");
     //items
     object getValue = config.getValue("items");
     if(getValue!=null)
         directories = (List<String>)getValue;
     else
         directories = new List<string>();
     //index
     getValue = config.getValue("index");
     if(getValue!=null)
         index = (int)getValue;
     else
         index = 0;
     //
     getValue = config.getValue("recursiveSearch");
     if(getValue!=null)
         recursiveSearch = (Boolean)getValue;
     else
         recursiveSearch = false;
     //
     loadFilenames();
 }
 public void open()
 {
     WallpaperServiceConfig config = new WallpaperServiceConfig();
     config.load("%plugins%LocalFiles.conf");
     object getValue = config.getValue("items");
     if(getValue!=null)
         filenames = (List<String>)getValue;
     else
         filenames = new List<string>();
     getValue = config.getValue("index");
     if(getValue!=null)
         index = (int)getValue;
     else
         index = 0;
 }