Exemplo n.º 1
0
        public void LogWrite(string logMessage)
        {
            m_exePath = ConnectionUtil.ObtenerRutaLogs();

            Directory.CreateDirectory(m_exePath);

            Debug.Print(m_exePath);
            try
            {
                using (StreamWriter w = File.AppendText(m_exePath + "\\" + "PideLog.txt"))
                {
                    Log(logMessage, w);
                }
            }
            catch (Exception ex)
            {
                Debug.Print(ex.Message);
                Debug.Print(ex.StackTrace.ToString());
            }
        }
Exemplo n.º 2
0
        private static PideDatabase ObtenerBaseDatos()
        {
            string cadenaConexion = ConnectionUtil.ObtenerCadenaConexion();

            return(new PideDatabase(cadenaConexion));
        }