public void UpdateImageRecord(ImageSeries series) { _ImageSeries = series; cmbRensor.ItemsSource = null; cmbRensor.ItemsSource = _ImageSeries.GetSensors(); cmbRensor.SelectedIndex = 0; }
public MainPage() { InitializeComponent(); Client = new ServiceClient(); Client.GetKeyWordsCompleted += client_GetKeyWordsCompleted; Client.GetAllSitesCompleted += Client_GetAllSitesCompleted; Client.GetSitesCompleted += client_GetSitesCompleted; Client.GetDoubleTimeSeriesCompleted += client_GetDoubleTimeSeriesCompleted; Client.GetGridCompleted += Client_GetGridCompleted; Client.GetTimeRangeCompleted += Client_GetTimeRangeCompleted; Client.GetPointProfileCompleted += Client_GetPointProfileCompleted; Client.DownloadImageCompleted += Client_DownloadImageCompleted; Client.DownloadLegendCompleted += Client_DownloadLegendCompleted; Client.GetSensorImageRecordCompleted += Client_GetSensorImageRecordCompleted; _GraphicsLayers = new Dictionary <string, GraphicsLayer>(); _MarkerSymbols = new Dictionary <string, MarkerSymbol>(); _MarkerSymbols.Add("Buoy", BuoyMarkerSymbol); _MarkerSymbols.Add("Tide", TideMarkerSymbol); _MarkerSymbols.Add("Water Quality", WQMarkerSymbol); _MarkerSymbols.Add("Hydrology", HydrologyMarkerSymbol); _GraphicsLayers.Add("Buoy", Map.Layers["Buoys"] as GraphicsLayer); _GraphicsLayers.Add("Tide", Map.Layers["Tide Stations"] as GraphicsLayer); _GraphicsLayers.Add("Water Quality", Map.Layers["Water Quality Stations"] as GraphicsLayer); _GraphicsLayers.Add("Hydrology", Map.Layers["Hydrological Stations"] as GraphicsLayer); _GraphicsLayers.Add("Weather", Map.Layers["Weather Stations"] as GraphicsLayer); _GraphicsLayers.Add("General", Map.Layers["General Stations"] as GraphicsLayer); _GeneralStationLayer = Map.Layers["General Stations"] as GraphicsLayer; _GridLayer = Map.Layers["Model Grid"] as GraphicsLayer; foreach (GraphicsLayer layer in _GraphicsLayers.Values) { layer.MouseLeftButtonDown += GraphicsLayer_MouseLeftButtonDown; layer.Clusterer = null; } ClustererOfStation = new FlareClusterer() { FlareBackground = new SolidColorBrush(Colors.Yellow), FlareForeground = new SolidColorBrush(Colors.Black), MaximumFlareCount = 100, Radius = 40, }; _ImageSeries = new ImageSeries(); _QueryCriteria = new QueryCriteria(); _Timer = new Storyboard(); _Timer.Duration = TimeSpan.FromMilliseconds(10000); _Timer.Completed += _timer_Completed; StatusBar.Visibility = System.Windows.Visibility.Collapsed; _Box = new BBox(); _IsDownloadingTimeSeries = false; _GridRender = new GridRender(); GridRender.Instance = _GridRender; animationPlayer.ServiceClient = Client; coastalWatch.ServiceClient = Client; coastalWatch.Map = this.Map; }