Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Traductor trad = new Traductor(@"TraductorXMLite.sqlite3", 1);

            if (trad.VerificarConexion())
            {
                CampoCalculado CampCalculado = new CampoCalculado();
                string         ruta          = Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\" + "1.txt";
                FileStream     stream        = File.OpenRead(ruta);
                byte[]         fileBytes     = new byte[stream.Length];
                stream.Read(fileBytes, 0, fileBytes.Length);
                stream.Close();
                trad.Procesar(fileBytes);
                Console.WriteLine("Conexion valida.");
            }
            else
            {
                Console.WriteLine("Conexion invalida.");
            }
            Console.ReadLine();
        }