internal void BigReset()
        {
            ResetSourceDB();
            ResetStageDB();
            ResetResultDB();

            FileMover fileMover = new FileMover();

            fileMover.DeleteEveryJpgFileInFolderAndSubFolders(@"C:\TrashDetector\Data\StageDBData");
            fileMover.DeleteEveryJpgFileInFolderAndSubFolders(@"C:\TrashDetector\Data\ResultDBData");
            fileMover.UpdateTxtFile("", StageDB.stageDBDataLog);
        }
        public void CopyJpgFiles(string sourceFilePath, string destFilePath, int amount)
        {
            FileMover fileMover = new FileMover();

            StreamReader sr   = new StreamReader(StageDB.stageDBDataLog);
            string       line = sr.ReadLine();
            int          lastImageFileIndex = 0;

            if (line != null)
            {
                lastImageFileIndex = Int32.Parse(line);
            }

            sr.Close();


            for (int i = 1; i <= amount; i++)
            {
                SourceDB  sourceDB  = new SourceDB();
                ImageFile imageFile = sourceDB.GetImageFile(lastImageFileIndex + i);

                fileMover.CopyImageFile(imageFile, stageDBDataUnporssedFolder);
            }

            if (lastImageFileIndex == 0)
            {
                lastImageFileIndex = amount;
            }
            else
            {
                lastImageFileIndex += amount;
            }


            fileMover.UpdateTxtFile(lastImageFileIndex.ToString(), StageDB.stageDBDataLog);


            //StageDB.stageDBDataLog
            //fileMover.CopyJpgFiles(sourceFilePath, destFilePath, amount);
        }