public int EncryptAllFiles() { try { if (Param_PFD == null || !Directory.Exists(RootPath)) { return(-1); } var x = Param_PFD.EncryptAllFiles(RootPath); if (x > 0) { return(x); } return(-1); } catch { return(-1); } }
public int EncryptAllFiles() { try { if (Param_PFD == null || !Directory.Exists(RootPath)) { return(-1); } int x = Param_PFD.EncryptAllFiles(RootPath); if (x > 0) { if (Param_PFD.RebuilParamPFD(RootPath, false)) { return(x); } } return(-1); } catch { return(-1); } }