public Exception Download_BackupFile(Info_FTPServer fTPServer)
        {
            try
            {
                File_Read_Write.Create_Exits_Folder(AppDomain.CurrentDomain.BaseDirectory + @"Download\");

                bool isDown = FTPClient.Download(fTPServer.URL + "BackupDB_zip/" + ServerSource + "/" + DateTime.Now.ToString("yyyy-MM-dd"), fTPServer.User, fTPServer.Pass, AppDomain.CurrentDomain.BaseDirectory + @"Download\", DBSource + ".zip");

                if (isDown != true)
                {
                    return(new Exception("Download Backup file failed!", new Exception("")));
                }

                if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + DBSource + ".sql"))
                {
                    File.Delete(AppDomain.CurrentDomain.BaseDirectory + DBSource + ".sql");
                }

                ZipFile.ExtractToDirectory(AppDomain.CurrentDomain.BaseDirectory + @"Download\" + DBSource + ".zip", AppDomain.CurrentDomain.BaseDirectory);
            }
            catch (Exception op)
            {
                return(new Exception(op.Message, op.InnerException));
            }
            return(null);
        }
        public Exception Run_DongNen_DB(string DBName)
        {
            try
            {
                Ionic.Zip.ZipFile file = new ZipFile();
                file.AddDirectory(AppDomain.CurrentDomain.BaseDirectory + @"MySQLBackup\" + DBName);

                //System.IO.DirectoryInfo File_Info = new System.IO.DirectoryInfo(Registry_Read_Write.Read_Value(@"SOFTWARE\MaiA Sync\" + Server_Name + @"\SaveBackupTo", DB_Name));
                File_Read_Write.Create_Exits_Folder(AppDomain.CurrentDomain.BaseDirectory + @"Backup_zip");
                // file.SaveProgress += Save_Process;
                file.Save(AppDomain.CurrentDomain.BaseDirectory + @"Backup_zip\" + DBName + ".zip");
            }
            catch (Exception er)
            {
                return(er);
            }
            return(null);
        }