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);
        }
示例#2
0
        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;
        }