public CriadorConfig()
 {
     InitializeComponent();
     HighlightColors.HighlightRTF(txtXML);
     flowPanel.AutoScroll    = true;
     flowPanel.WrapContents  = false;
     flowPanel.Dock          = DockStyle.None;
     flowPanel.AutoSize      = false;
     flowPanel.FlowDirection = FlowDirection.TopDown;
 }
        private void TxtXMLTextChanged(object sender, EventArgs e)
        {
            HighlightColors.HighlightRTF(txtXML);

            Match match         = Regex.Match(txtXML.Text, @"(?<!{){(?!{)([^}\n]*)}");
            var   nomeControles = new List <string>();

            flowPanel.Controls.Clear();

            while (match.Success)
            {
                if (!nomeControles.Any(x => x == match.Value))
                {
                    nomeControles.Add(match.Value);
                }
                match = match.NextMatch();
            }

            CriarInputs(nomeControles);
        }