private void Txt_KeyUp(object sender, KeyEventArgs e)
        {
            Texto = TxtTexto.Text;

            if ((Char)KeyInterop.VirtualKeyFromKey(e.Key) == (Char)KeyInterop.VirtualKeyFromKey(Key.Enter) ||
                (Char)KeyInterop.VirtualKeyFromKey(e.Key) == (Char)KeyInterop.VirtualKeyFromKey(Key.Space))
            {
                char[] charArray = Texto.ToCharArray();
                foreach (Match match in Regex.Matches(Texto, Parametros, RegexOptions.Singleline))
                {
                    charArray[match.Groups[1].Index] = Char.ToUpper(charArray[match.Groups[1].Index]);
                }
                string output = new string(charArray);
                TxtTexto.Clear();
                TxtTexto.Text       = output;
                TxtTexto.CaretIndex = TxtTexto.Text.Length;
            }
        }
 public void NuevoArchivo()
 {
     TxtTexto.Clear();
     NombreArchivo = null;
 }