123456789101112131415161718192021222324252627282930313233343536373839 |
- using SysBaseLib.Security;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SysBaseLibs.Security
- {
- public class AppEnv
- {
- public static DBConfig ReadConnectionConfig()
- {
- return new DBConfig(FileFuns.ReadEncryptedFile("RSDB.cfg", "qwertyuiopasdfgh"));
- }
- public static string ConfigFile
- {
- get
- {
- //string text1 = LocalPath + "Config.rsc";
- string text1 = "Config.rsc";
- string text2 = FileFuns.GetFullPathFileName(text1);
- if (text2 != "")
- {
- text1 = text2;
- }
- else
- text1 = LocalPath + "\\bin\\Config.rsc";
- return text1;
- }
- }
- public static string LocalPath
- {
- get { return AppDomain.CurrentDomain.BaseDirectory; }
- }
- }
- }
|