public void cyberiaParseTextLoaded() { textFormat = formatPreviewTextbox.Text; List <String> blocks = CyberiaPreProcessor.getBlocksForDirective(textFormat, BLOCK_SECTION); List <FlatFileSection> sections = blocks.Select(x => new FlatFileSection(x)).ToList(); csvOutput = FlatFileSection.parseSections(textLoaded, sections); this.previewTextbox.Text = csvOutput; }
private void cyberiaPreProcessBtn_Click(object sender, RoutedEventArgs e) { CyberiaPreProcessor cyberia = new CyberiaPreProcessor(); cyberia.LanguageUsing = this.LanguageComboBox.Text; String input = textBox.Text; cyberia.processText(input, out devOutputText, out prodOutputText); if (devOutput) { textBox_Output.Text = devOutputText; } else { textBox_Output.Text = prodOutputText; } }
private void toSqlStringBtn_Click(object sender, RoutedEventArgs e) { textBox_Output.Text = CyberiaPreProcessor.StringToSqlString(textBox.Text); }