public static void SaveLog() { String logPath = GKCommon.GetProgramPath() + Controller.ProgramName + "_" + DateTime.Now.ToString().Replace(":", "-") + ".txt"; try { StreamWriter outputFile = new StreamWriter(logPath); for (int i = 0; i < logger.Count; i++) { outputFile.WriteLine(logger[i].ToString()); } outputFile.Close(); } catch (IOException) { // nothing } finally { logger.Clear(); } }
private String GetDBPath(string DBName) { return(GKCommon.GetProgramPath() + DBName); }