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);
 }
예제 #2
0
        public MainWindow()
        {
            InitializeComponent();
            MetadataViewModel model = Resources["MetadataModel"] as MetadataViewModel;
            if (model != null)
                model.Metadata = new ObservableCollection<Metadata>(new List<Metadata>());

            _geonorgeApi = new GeoNorge();
        }
예제 #3
0
 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);
 }
예제 #4
0
 public MetadataService(GeoNorge geonorge)
 {
     _geoNorge = geonorge;
 }
예제 #5
0
 public void Init()
 {
     _geonorge = new GeoNorge();
 }