Ejemplo n.º 1
0
        private void bt_Decode_Click(object sender, EventArgs e)
        {
            if (tbDirection.Text.Length > 0)
            {
                try
                {
                    string  path       = tbDirection.Text;
                    Fichero newfichero = new Fichero(path);
                    newfichero.leer();

                    listaCAT21v23 = newfichero.GetListCAT21v23();
                    listaCAT21    = newfichero.GetListCAT21(); // devuelve lista de clases CAT21, cada una con un paquete
                    listaCAT20    = newfichero.GetListCAT20();
                    listaCAT10    = newfichero.getListCAT10();

                    this.Close();
                }
                catch
                {
                    lblError.Text = "Error. Please select a valid file.";
                }
            }

            else
            {
                lblError.Text = "Please select a file.";
            }
        }