public void save()
 {
     WallpaperServiceConfig config = new WallpaperServiceConfig();
     config.addValue("items",directories);
     config.addValue("index",index);
     config.addValue("recursiveSearch",recursiveSearch);
     config.save("%plugins%LocalDirectories.conf");
 }
 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;
 }
 //
 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 save()
 {
     WallpaperServiceConfig config = new WallpaperServiceConfig();
     config.addValue("items",filenames);
     config.addValue("index",index);
     config.save("%plugins%LocalFiles.conf");
 }