protected override object GetOptions(System.Windows.Window parentWindow, DataMatrix matrix, String datasetName) { var frm = new MatrixColumnChooser(matrix, "Select the label column for each point:"); frm.Owner = parentWindow; if (frm.ShowDialog().ValueOrFalse()) { var filename = PromptForFilename(".kml", "KML Files (*.kml)|*.kml", datasetName); if (!string.IsNullOrEmpty(filename)) { KMLExporterOptions options = new KMLExporterOptions(); options.Filename = filename; options.LabelColumn = frm.SelectedColumn; return(options); } } return(null); }
protected override object GetOptions(System.Windows.Window parentWindow, DataMatrix matrix, String datasetName) { var frm = new MatrixColumnChooser(matrix, "Select the label column for each point:"); frm.Owner = parentWindow; if (frm.ShowDialog().ValueOrFalse()) { var filename = PromptForFilename(".kml", "KML Files (*.kml)|*.kml", datasetName); if (!string.IsNullOrEmpty(filename)) { KMLExporterOptions options = new KMLExporterOptions(); options.Filename = filename; options.LabelColumn = frm.SelectedColumn; return options; } } return null; }