public SourceTextBilder(ListSyntRules _listSyntRules, TextFormatter _textFormatter)
        {
            ListSyntRules = _listSyntRules;
            TextFormatter = _textFormatter;

            TextFormatter.GetBodyBlock += getBodyBlock;
        }
        public TextFormatterForm(TextFormatter _textFormatter)
        {
            InitializeComponent();

            TextFormatter = _textFormatter;
            initIndents();
        }
        public SourceTextBilder()
        {
            TextFormatter = new TextFormatter();
            // todo
            ListSyntRules = new ListSyntRules(
                System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.FullyQualifiedName) + "\\Rules_CS.txt");

            TextFormatter.GetBodyBlock += getBodyBlock;
        }
 public void SaveTextFormater(TextFormatter _TextFormatter)
 {
     _TextFormatter.Indents.BlockBegin = indentsBlockBegin[comboBoxBlockBegin.SelectedItem.ToString()];
     _TextFormatter.Indents.BlockEnd = indentsBlockEnd[comboBoxBlockEnd.SelectedItem.ToString()];
     StringBuilder bodyBlock = new StringBuilder();
     for (int i = 0; i < numericUpDown1.Value; i++)
         bodyBlock.Append(indentsBodyBlock[comboBoxBodyBlock.SelectedItem.ToString()]);
     _TextFormatter.Indents.BlockBody = bodyBlock.ToString();
     _TextFormatter.Indents.BetweenWords = indentsBetweenWords[comboBoxBetweenWords.SelectedItem.ToString()];
 }
 public CSharpSemanticNodeConverter(ListSyntRules _listSyntRules, TextFormatter _textFormatter)
 {
     SourceTextBuilder = new SourceTextBilder(_listSyntRules, _textFormatter);
 }