Ejemplo n.º 1
0
        private void btnSaveProcessDefinition_Click(object sender, RoutedEventArgs e)
        {
            ProcessDefinition = ProcessDefinition.ToProcessDefinition(ColumnProcessDefinitions);
            NumericTable numericTable = ProcessDefinition.ToNumericTableUpdateProcessDefinition(RawText, ",", DependantColumnIndex);

            if (ProcessDefinition != null)
            {
                FileIOProcessDefinition.SaveAs(ref ProcessDefinition);
            }
        }
Ejemplo n.º 2
0
        private void btnProcessDataAndSave_Click(object sender, RoutedEventArgs e)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();

            saveFileDialog.Filter = FileHelper.FileIO.BuildFilter("csv", "csv");
            if (saveFileDialog.ShowDialog() == false)
            {
                return;
            }
            ProcessDefinition = ProcessDefinition.ToProcessDefinition(ColumnProcessDefinitions);
            NumericTable numericTable = ProcessDefinition.ToNumericTableUpdateProcessDefinition(RawText, ",", DependantColumnIndex);
            string       csv          = ProcessData.NumericTableToCSV(numericTable);

            File.WriteAllText(saveFileDialog.FileName, csv);
        }