示例#1
0
        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;
        }
示例#2
0
        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;
            }
        }
示例#3
0
 private void toSqlStringBtn_Click(object sender, RoutedEventArgs e)
 {
     textBox_Output.Text = CyberiaPreProcessor.StringToSqlString(textBox.Text);
 }