Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 private String GetDBPath(string DBName)
 {
     return(GKCommon.GetProgramPath() + DBName);
 }