public static bool CheckKeyFile() { string keyFilePath = AppDomain.CurrentDomain.BaseDirectory + "AxleHead.Key"; if (FileOperate.CheckFileExist(keyFilePath) == false) { return(false); } return(true); }
private static string ReadKeyFromFile() { string keyFilePath = AppDomain.CurrentDomain.BaseDirectory + "AxleHead.Key"; string readKey = FileOperate.ReadFileFromPath(@keyFilePath); if (readKey.Contains("\n")) { readKey = readKey.Substring(0, readKey.Length - 1); } return(readKey); }