#region SharpZipLib带密码压缩
private int ZipFile(string FileToZip, string ZipedFile, String Password)
{
int nReturn = 1;
//如果文件没有找到,则报错
if (!File.Exists(FileToZip))
{
//throw new System.IO.FileNotFoundException("指定要压缩的文件: " + FileToZip + " 不存在!");
nReturn = 0;
}
FileStream ZipFile = null;
ZipOutputStream ZipStream = null;
ZipEntry ZipEntry = null;
try
{
ZipFile = File.OpenRead(FileToZip);
byte[] buffer = new byte[ZipFile.Length];
ZipFile.Read(buffer, 0, buffer.Length);
ZipFile.Close();
ZipFile = File.Create(ZipedFile);
ZipSt