public MetadataService() { System.Collections.Specialized.NameValueCollection settings = System.Web.Configuration.WebConfigurationManager.AppSettings; string server = settings["GeoNetworkServer"]; string username = settings["GeoNetworkUsername"]; string password = settings["GeoNetworkPassword"]; _geoNorge = new GeoNorgeAPI.GeoNorge(username, password, server); }
public MainWindow() { InitializeComponent(); MetadataViewModel model = Resources["MetadataModel"] as MetadataViewModel; if (model != null) model.Metadata = new ObservableCollection<Metadata>(new List<Metadata>()); _geonorgeApi = new GeoNorge(); }
public MetadataService() { System.Collections.Specialized.NameValueCollection settings = System.Web.Configuration.WebConfigurationManager.AppSettings; string server = settings["GeoNetworkUrl"]; string username = settings["GeoNetworkUsername"]; string password = settings["GeoNetworkPassword"]; _geoNorge = new GeoNorgeAPI.GeoNorge(username, password, server); _geoNorge.OnLogEventDebug += new GeoNorgeAPI.LogEventHandlerDebug(LogEventsDebug); _geoNorge.OnLogEventError += new GeoNorgeAPI.LogEventHandlerError(LogEventsError); }
public MetadataService(GeoNorge geonorge) { _geoNorge = geonorge; }
public void Init() { _geonorge = new GeoNorge(); }