/// <summary>
        /// Adds a new entry to the drop down list from data provider
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddData_Click(object sender, EventArgs e)
        {
            /////////////////////////////////
            //Replace with something that uses the default data provider
            IFeatureSet tempFeatureSet = MapWindow.Components.DataManager.DefaultDataManager.OpenVector();
            
            //If the feature is null don't do anything the user probably hit cancel on the dialog
            if (tempFeatureSet == null)
                return;

            //Else if the wrong feature type is returned don't add it and indicate whats wrong
            else if (tempFeatureSet.FeatureType != MapWindow.Geometries.FeatureTypes.Line)
                MessageBox.Show(MapWindow.MessageStrings.FeatureTypeException);

            //If its good add the feature set and save it
            else
            {
                _addedFeatureSet = new DataSetArray(System.IO.Path.GetFileNameWithoutExtension(tempFeatureSet.Filename), tempFeatureSet);
                base.Param.ModelName = _addedFeatureSet.Name;
                base.Param.Value = _addedFeatureSet.DataSet as object;
            }
        }
        /// <summary>
        /// Adds a new entry to the drop down list from data provider
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddData_Click(object sender, EventArgs e)
        {

            /////////////////////////////////
            //Replace with something that uses the default data provider
            IFeatureSet tempFeatureSet = MapWindow.Components.DataManager.DefaultDataManager.OpenVector();
            
            //If the feature is null don't do anything the user probably hit cancel on the dialog
            if (tempFeatureSet == null)
                return;

            //If its good add the feature set and save it
            else
            {
                _addedFeatureSet = new DataSetArray(System.IO.Path.GetFileNameWithoutExtension(tempFeatureSet.Filename), tempFeatureSet);
                base.Param.ModelName = _addedFeatureSet.Name;
                base.Param.Value = _addedFeatureSet.DataSet as object;
            }
        }