Exemple #1
0
 private bool DeleteLoopFromDB(int loopID)
 {
     try
     {
         IFileService     _fileService     = new SCA.BusinessLib.Utility.FileService();
         ILogRecorder     logger           = null;
         IDatabaseService _databaseService = new SCA.DatabaseAccess.SQLiteDatabaseAccess(_controller.Project.SavePath, logger, _fileService);
         ILoopDBService   loopDBService    = new SCA.DatabaseAccess.DBContext.LoopDBService(_databaseService);
         loopDBService.DeleteLoopInfo(loopID);
     }
     catch (Exception ex)
     {
         return(false);
     }
     return(true);
 }