AppEnv.cs 664 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace SysSecLibs
  5. {
  6. public class AppEnv
  7. {
  8. public static string ReadConnectionString()
  9. {
  10. return FileFuns.ReadEncryptedFile("RSDB.cfg", "qwertyuiopasdfgh");
  11. }
  12. public static string ConfigFile
  13. {
  14. get
  15. {
  16. string text1 = "Config.rsc";
  17. string text2 = FileFuns.GetFullPathFileName(text1);
  18. if (text2 != "")
  19. {
  20. text1 = text2;
  21. }
  22. return text1;
  23. }
  24. }
  25. }
  26. }