Exemple #1
0
 public CSMedialoopCollection CollectCSMediaLoops()
 {
     try
     {
         Console.WriteLine(DateTime.Now.ToShortTimeString()+"  "+"Collect CS Media Loop");
         InitDB();
         CSMedialoopCollection scrc = new CSMedialoopCollection();
         scrc.LoadAll();
         //Console.WriteLine(DateTime.Now.ToShortTimeString()+"  "+"LOAD_ALL");
         return scrc;
     }
     catch (Exception ex)
     {
         Console.WriteLine(DateTime.Now.ToShortTimeString()+"  "+ex.Message);
         return null;
     }
 }
Exemple #2
0
 public Boolean PurgeCSMediaLoops()
 {
     try
     {
         Console.WriteLine(DateTime.Now.ToShortTimeString()+"  "+"Purge CS Media Loop");
         InitDB();
         CSMedialoopCollection scrc = new CSMedialoopCollection();
         scrc.LoadAll();
         scrc.MarkAllAsDeleted();
         scrc.Save();
         return true;
     }
     catch (Exception ex)
     {
         Console.WriteLine(DateTime.Now.ToShortTimeString()+"  "+ex.Message);
         return false;
     }
 }