public bool Configure(System.Windows.Window owner)
        {
            // Show the configuration dialog.
            Config.BufferMapToolConfig dialog = new Config.BufferMapToolConfig(DataSourceIds != null ? DataSourceIds[0] : null, Field)
            {
                Owner = owner
            };
            if (dialog.ShowDialog() != true)
            {
                return(false);
            }

            // Retrieve the selected values for the properties from the configuration dialog.
            if (dialog.DataSource != null)
            {
                DataSourceIds    = new string[] { dialog.DataSource.Id };
                BufferDataSource = dialog.DataSource.Id;
                Field            = dialog.Field.Name;
            }

            return(true);
        }
        public bool Configure(System.Windows.Window owner)
        {
            // Show the configuration dialog.
            Config.BufferMapToolConfig dialog = new Config.BufferMapToolConfig(DataSourceIds != null ? DataSourceIds[0] : null, Field) { Owner = owner };
            if (dialog.ShowDialog() != true)
                return false;

            // Retrieve the selected values for the properties from the configuration dialog.
            if (dialog.DataSource != null)
            {
                DataSourceIds = new string[] { dialog.DataSource.Id };
                BufferDataSource = dialog.DataSource.Id;
                Field = dialog.Field.Name;
            }

            return true;
        }