private void Button_Click_7(object sender, RoutedEventArgs e)
        {
            _currentSource = tbSource.Text;
            _currentCU     = TameCompilationUnitSyntax.FromCode(_currentSource);
            //var root = CSharpSyntaxTree.ParseText(code).GetRoot();
            var usings = _currentCU.DescendantsAll().OfType <TameUsingDirectiveSyntax>().Select(v => v.NameStr).ToList();

            lbNodes.ItemsSource = _currentCU.DescendantsAll();
            tbStringTree.Text   = _currentCU.ToStringTree(null, 0, 70).ToString();
        }
 private void Button_Click_4(object sender, RoutedEventArgs e)
 {
     if (_selectedNode != null)
     {
         try
         {
             var code = tbNodeText.Text;
             //_selectedNode.ReplaceNode(CreateSyntaxNode.CreateFormCode(code, _selectedNode.RoslynTypeName));
             _selectedNode.ReplaceNode(code);
             lbNodes.ItemsSource = _currentCU.DescendantsAll();
             tbStringTree.Text   = _currentCU.ToStringTree(null, 0, 70).ToString();
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.ToString());
         }
     }
 }
 private void ShowStringTree(bool showTameType)
 {
     tbStringTree.Text = _currentCU?.ToStringTree(null, 0, 70, showTameType).ToString();
 }