public string DeleteDataBDSQL(string id)
        {
            string NameFile = id;
            string result   = "";

            string pathFD = WorkingBD.GetPathFileName(null, NameFile);

            if (pathFD.Length != 0)
            {
                if (WorkBinFiles.DeleteFile(pathFD) == true)
                {
                    result = "Файл удален : " + NameFile + " [" + DateTime.Now + "]";
                }
                else
                {
                    result = "Файл НЕ удален : " + NameFile + " [" + DateTime.Now + "]";
                }
            }
            else
            {
                result = "Файл для удаления не найден : " + NameFile + " [" + DateTime.Now + "]";
            }
            WorkingBD.SaveLog(result);
            return(result);
        }
        private static Task<bool> ConvertFileCSV_Task(string PathFile = "")
        {
            return Task.Run(() =>
            {
                try
                {
                    HeaderTradeRecord fileBinRead = WorkBinFiles.ReadBinFile(PathFile);
                    if (fileBinRead.trades.Count>0)
                    {
                        WorkingBD.InsertDataCSV(PathFile, fileBinRead);
                    }

                    return true;
                }
                catch (Exception x)
                {
                    Console.WriteLine("Error ConvertFileCSV_Task: " + x.Message);
                }
                return false;
            });
        }