コード例 #1
0
        public bool Configure(System.Windows.Window owner)
        {
            var configureDialog = new Config.ERGChemicalConfigDialog(ERGChemicalURL, ERGPlacardURL,
                                                                     WindDirectionLayerDataSource, FindNearestWSURL, WindDirectionFieldName, WindWeatherStationFieldName, WindRecordedDateFieldName, DefaultERGChemicalName, DefaultPlacardName)
            {
                Owner = owner
            };

            if (configureDialog.ShowDialog() != true)
            {
                return(false);
            }

            // Retrieve the selected values for the properties from the configuration dialog.
            //configurable attributes
            ERGChemicalURL   = configureDialog.ERGChemicalURL;
            ERGPlacardURL    = configureDialog.ERGPlacardURL;
            FindNearestWSURL = configureDialog.FindNearestWSURL;

            WindDirectionLayerDataSource = configureDialog.WindDirectionLayerDataSource;
            WindDirectionFieldName       = configureDialog.WindDirectionFieldName;
            WindWeatherStationFieldName  = configureDialog.WindStationNameFieldName;
            WindRecordedDateFieldName    = configureDialog.WindDateFieldName;

            DefaultERGChemicalName = configureDialog.DefaultChemicalName;
            DefaultPlacardName     = configureDialog.DefaultPlacardName;

            return(true);
        }
コード例 #2
0
        public bool Configure(System.Windows.Window owner)
        {
            var configureDialog = new Config.ERGChemicalConfigDialog(ERGChemicalURL, ERGPlacardURL,
                WindDirectionLayerDataSource, FindNearestWSURL, WindDirectionFieldName, WindWeatherStationFieldName, WindRecordedDateFieldName, DefaultERGChemicalName, DefaultPlacardName) { Owner = owner };
            if (configureDialog.ShowDialog() != true)
                return false;

            // Retrieve the selected values for the properties from the configuration dialog.
            //configurable attributes
            ERGChemicalURL = configureDialog.ERGChemicalURL;
            ERGPlacardURL = configureDialog.ERGPlacardURL;
            FindNearestWSURL = configureDialog.FindNearestWSURL;
           
            WindDirectionLayerDataSource = configureDialog.WindDirectionLayerDataSource; 
            WindDirectionFieldName = configureDialog.WindDirectionFieldName; 
            WindWeatherStationFieldName = configureDialog.WindStationNameFieldName;
            WindRecordedDateFieldName = configureDialog.WindDateFieldName;

            DefaultERGChemicalName = configureDialog.DefaultChemicalName;
            DefaultPlacardName = configureDialog.DefaultPlacardName;

            return true;
        }