Esempio n. 1
0
 public void Load(string imagePath)
 {
     coverList.Clear();
     var imageDir = new DirectoryInfo(imagePath);
     int doneImages = 0;
     foreach (FileInfo image in imageDir.GetFiles("*.jpg"))
     {
         var cover = new Cover(image.FullName, doneImages++);
         coverList.Add(cover);
         visualModel.Children.Add(cover);
     }
     UpdateIndex(coverList.Count / 2);
 }
Esempio n. 2
0
        public void Load(string imagePath, string type)
        {
            wbMain.NavigateToString("<!-- saved from url=(0014)about:internet -->\n\r<html><head><style type=\"text/css\">\n\rbody  {background-color:black}\n\r</style></head><body scroll=\"no\"><iframe src=\"http://tv.phazer.info/phazerbox/9/&css=http://tv.phazer.info/css/v3/livada.pondi.css\" allowtransparency=\"true\" width=\"210\" height=\"250\" frameborder=\"0\" marginwidth=\"0\"  marginheight=\"0\" scrolling=\"no\" style=\"color:black\"></iframe></body></html>");

            index = 0;
            coverList.Clear();
            var imageDir = new DirectoryInfo(imagePath);
            int doneImages = 0;
            foreach (FileInfo image in imageDir.GetFiles(type))
            {
                var cover = new Cover(image.FullName, doneImages++);
                coverList.Add(cover);
                visualModel.Children.Add(cover);
            }
            UpdateIndex(coverList.Count / 2);
        }