Beispiel #1
0
 public static void Test_telechargement_plus_loadPostFromWeb_05(string minTime = null, bool reload = false, bool loadImage = false)
 {
     TelechargementPlusInit();
     MongoCollection<BsonDocument> collection = TelechargementPlus_GetMongoCollection();
     IMongoQuery query = null;
     if (minTime != null)
         // minTime "2013-11-07 14:00"
         query = Query.GTE("creationDate", new BsonDateTime(DateTime.ParseExact(minTime, "yyyy-MM-dd HH:mm", CultureInfo.CurrentCulture)));
     IMongoSortBy sort = SortBy.Descending("creationDate");
     MongoCursor<BsonDocument> cursor;
     if (query != null)
         cursor = collection.Find(query);
     else
         cursor = collection.FindAll();
     var q = from doc in cursor.SetSortOrder(sort) select from print in TelechargementPlus_LoadPost_v1.GetPrints(doc.zGetString("url"), reload: reload, loadImage: loadImage) select print;
     //RunSource.CurrentRunSource.View(q);
     q.zView();
 }
Beispiel #2
0
 public static void Test_telechargement_plus_loadPostFromWeb_02(bool reload = false, int startPage = 1, int maxPage = 1, bool loadImage = false)
 {
     Trace.WriteLine("Test_telechargement_plus_loadPostFromWeb_02");
     TelechargementPlusInit();
     //RunSource.CurrentRunSource.View(from postHeader in new TelechargementPlus_LoadPostHeaderFromWeb_v1(startPage: startPage, maxPage: maxPage) select from print in TelechargementPlus_LoadPost_v1.GetPrints(postHeader.url, reload, loadImage) select print);
     (from postHeader in new TelechargementPlus_LoadPostHeaderFromWeb_v1(startPage: startPage, maxPage: maxPage) select from print in TelechargementPlus_LoadPost_v1.GetPrints(postHeader.url, reload, loadImage) select print).zView();
 }