public static void ExportPLSCalibration(Altaxo.Data.DataTable table) { // quest the number of factors to export IntegerValueInputController ivictrl = new IntegerValueInputController(1,"Please choose number of factors to export (>0):"); ivictrl.Validator = new IntegerValueInputController.ZeroOrPositiveIntegerValidator(); if(!Current.Gui.ShowDialog(ivictrl,"Number of factors",false)) return; // quest the filename System.Windows.Forms.SaveFileDialog dlg = new System.Windows.Forms.SaveFileDialog(); dlg.DefaultExt="xml"; if(System.Windows.Forms.DialogResult.OK!=dlg.ShowDialog(Current.MainWindow)) return; PredictionModelExporter exporter = new PredictionModelExporter(table,ivictrl.EnteredContents); exporter.Export(dlg.FileName); }
public static void ExportPLSCalibration(Altaxo.Data.DataTable table) { // quest the number of factors to export IntegerValueInputController ivictrl = new IntegerValueInputController(1, "Please choose number of factors to export (>0):"); ivictrl.Validator = new IntegerValueInputController.ZeroOrPositiveIntegerValidator(); if (!Current.Gui.ShowDialog(ivictrl, "Number of factors", false)) return; // quest the filename SaveFileOptions options = new SaveFileOptions(); options.AddFilter("*.xml", "Xml files (*.xml)"); options.FilterIndex = 0; if (!Current.Gui.ShowSaveFileDialog(options)) return; PredictionModelExporter exporter = new PredictionModelExporter(table, ivictrl.EnteredContents); exporter.Export(options.FileName); }