private void DrawMap() { m.MapLayer layer = new m.MapLayer(); for (int i = 0; i < _latLngColorTable.GetLength(0); i++) { layer.AddChild(CreateMarker(_latLngColorTable[i].Color), new m.Location(_latLngColorTable[i].Latitude, _latLngColorTable[i].Longitude)); } _map.Children.Add(layer); }
void Save_PropertyChanged(object sender, PropertyChangedEventArgs e) { switch (e.PropertyName) { case "saveRecord": Debug.WriteLine("clear layer"); mapView.Children.Remove(layer); mapView.Children.Add(otherViewModel.Layer); layer = otherViewModel.Layer; break; } }
public OtherView() { otherViewModel = new OtherViewModel(); InitializeComponent(); this.DataContext = otherViewModel; otherViewModel.PropertyChanged += Save_PropertyChanged; isFirstPress = true; layer = otherViewModel.Layer; mapView.Children.Add(otherViewModel.Layer); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 2: this.MapWithPolygon = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 3: this.NewPolygonLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 4: this.txtDescription = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.btnCreatePolygon = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\MainWindow.xaml" this.btnCreatePolygon.Click += new System.Windows.RoutedEventHandler(this.btnCreatePolygon_Click); #line default #line hidden return; case 6: this.Cord = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.map = ((Microsoft.Maps.MapControl.WPF.Map)(target)); #line 10 "..\..\..\MainWindow.xaml" this.map.MouseMove += new System.Windows.Input.MouseEventHandler(this.map_MouseMove); #line default #line hidden return; case 2: this.mapLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 3: this.pin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Overlay = ((System.Windows.Controls.Grid)(target)); return; case 2: this.currentImage = ((System.Windows.Controls.Image)(target)); return; case 3: this.Previous = ((System.Windows.Controls.Button)(target)); #line 80 "..\..\..\Views\MapView.xaml" this.Previous.Click += new System.Windows.RoutedEventHandler(this.Previous_Click); #line default #line hidden return; case 4: this.imageCounter = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.Next = ((System.Windows.Controls.Button)(target)); #line 84 "..\..\..\Views\MapView.xaml" this.Next.Click += new System.Windows.RoutedEventHandler(this.Next_Click); #line default #line hidden return; case 6: this.EscapeToMap = ((System.Windows.Controls.Button)(target)); #line 87 "..\..\..\Views\MapView.xaml" this.EscapeToMap.Click += new System.Windows.RoutedEventHandler(this.EscapeToMap_Click); #line default #line hidden return; case 7: this.InnerMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 8: this.MyBrowserControl = ((PhotoVis.Controls.BrowserControl)(target)); return; case 9: #line 110 "..\..\..\Views\MapView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenStreetViewNewWindow_Click); #line default #line hidden return; case 10: this.ImageFileName = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.ImageSaveDate = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.ImageTaken = ((System.Windows.Controls.TextBlock)(target)); return; case 13: this.Creator = ((System.Windows.Controls.TextBlock)(target)); return; case 14: #line 135 "..\..\..\Views\MapView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 15: this.UnassignedImagesControl = ((System.Windows.Controls.ListBox)(target)); #line 163 "..\..\..\Views\MapView.xaml" this.UnassignedImagesControl.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Images_PreviewMouseLeftButtonDown); #line default #line hidden #line 164 "..\..\..\Views\MapView.xaml" this.UnassignedImagesControl.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.Images_MouseMove); #line default #line hidden return; case 17: this.MyMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); #line 223 "..\..\..\Views\MapView.xaml" this.MyMap.Drop += new System.Windows.DragEventHandler(this.MyMap_Drop); #line default #line hidden #line 224 "..\..\..\Views\MapView.xaml" this.MyMap.DragEnter += new System.Windows.DragEventHandler(this.MyMap_DragEnter); #line default #line hidden return; case 18: this.NewPolygonLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 19: this.PushpinLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 20: this.debugContainer = ((System.Windows.Controls.Border)(target)); return; case 21: this.eventsPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 22: this.AgeLowerValue = ((System.Windows.Controls.TextBlock)(target)); return; case 23: this.AgeUpperValue = ((System.Windows.Controls.TextBlock)(target)); return; case 24: this.AgeSlider = ((PhotoVis.Controls.RangeSlider)(target)); #line 246 "..\..\..\Views\MapView.xaml" this.AgeSlider.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.AgeSlider_DragCompleted)); #line default #line hidden return; case 25: #line 257 "..\..\..\Views\MapView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AerialMode_Clicked); #line default #line hidden return; case 26: #line 258 "..\..\..\Views\MapView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RoadMode_Clicked); #line default #line hidden return; case 27: #line 259 "..\..\..\Views\MapView.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HybridMode_Clicked); #line default #line hidden return; case 28: this.GoogleStreetViewMarker = ((System.Windows.Controls.Image)(target)); #line 261 "..\..\..\Views\MapView.xaml" this.GoogleStreetViewMarker.PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.GoogleStreetView_PreviewMouseLeftButtonDown); #line default #line hidden #line 262 "..\..\..\Views\MapView.xaml" this.GoogleStreetViewMarker.PreviewMouseMove += new System.Windows.Input.MouseEventHandler(this.GoogleStreetView_MouseMove); #line default #line hidden #line 263 "..\..\..\Views\MapView.xaml" this.GoogleStreetViewMarker.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.GoogleStreetView_MouseDown); #line default #line hidden return; case 29: this.GoogleStreetViewTranslate = ((System.Windows.Media.TranslateTransform)(target)); return; case 30: this.StatusTbx = ((PhotoVis.Controls.ScrollingTextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Overlay = ((System.Windows.Controls.Grid)(target)); return; case 2: this.currentImage = ((System.Windows.Controls.Image)(target)); return; case 3: this.imageCounter = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.InnerMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 5: this.FileName = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.ImageSaveDate = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.ImageTaken = ((System.Windows.Controls.TextBlock)(target)); return; case 8: #line 47 "..\..\ImageMapDisplayControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 9: this.MyMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 10: this.NewPolygonLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 11: this.PushpinLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 12: #line 66 "..\..\ImageMapDisplayControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AerialMode_Clicked); #line default #line hidden return; case 13: #line 67 "..\..\ImageMapDisplayControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RoadMode_Clicked); #line default #line hidden return; case 14: #line 68 "..\..\ImageMapDisplayControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.HybridMode_Clicked); #line default #line hidden return; case 15: #line 70 "..\..\ImageMapDisplayControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PointClusterData_Clicked); #line default #line hidden return; case 16: #line 71 "..\..\ImageMapDisplayControl.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GridClusterData_Clicked); #line default #line hidden return; case 17: this.debugContainer = ((System.Windows.Controls.Border)(target)); return; case 18: this.eventsPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 19: this.StatusTbx = ((PhotoVis.Controls.ScrollingTextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 2: this.MapWithPolygon = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 3: this.WifiLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 4: this.NewPolygonLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 5: this.TextLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 6: this.button = ((System.Windows.Controls.Button)(target)); #line 39 "..\..\MainWindow.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 7: this.button1 = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\MainWindow.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 8: this.button2 = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\MainWindow.xaml" this.button2.Click += new System.Windows.RoutedEventHandler(this.btnCreatePolygon_Click); #line default #line hidden return; case 9: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 10: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 11: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 12: this.label4 = ((System.Windows.Controls.Label)(target)); return; case 13: this.label5 = ((System.Windows.Controls.Label)(target)); return; case 14: this.textBox = ((System.Windows.Controls.TextBox)(target)); #line 47 "..\..\MainWindow.xaml" this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged); #line default #line hidden return; case 15: this.textBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 16: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; case 17: this.textBlock2 = ((System.Windows.Controls.TextBlock)(target)); return; case 18: this.textBlock3 = ((System.Windows.Controls.TextBlock)(target)); return; case 19: this.textBlock4 = ((System.Windows.Controls.TextBlock)(target)); return; case 20: this.pieChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(target)); return; case 21: this.barChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(target)); return; case 22: this.MiniMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 23: this.label6 = ((System.Windows.Controls.Label)(target)); return; case 24: this.textBlock5 = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MyMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 2: this.DataLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 3: this.Infobox = ((System.Windows.Controls.Grid)(target)); return; case 4: #line 20 "..\..\MapUserContol.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseInfobox_Click); #line default #line hidden return; case 5: this.InfoboxTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.InfoboxDescription = ((System.Windows.Controls.TextBlock)(target)); return; case 7: #line 44 "..\..\MapUserContol.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PanMap_Click); #line default #line hidden return; case 8: #line 45 "..\..\MapUserContol.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PanMap_Click); #line default #line hidden return; case 9: #line 46 "..\..\MapUserContol.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PanMap_Click); #line default #line hidden return; case 10: #line 47 "..\..\MapUserContol.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PanMap_Click); #line default #line hidden return; case 11: this.ZoomBar = ((System.Windows.Controls.Slider)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Global_ToolBar = ((System.Windows.Controls.ToolBar)(target)); return; case 2: #line 39 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenManageWindow_Click); #line default #line hidden return; case 3: #line 47 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click); #line default #line hidden return; case 4: #line 56 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenTimeFilterWindow_Click); #line default #line hidden return; case 5: this.DemoButton = ((System.Windows.Controls.Button)(target)); #line 62 "..\..\MainWindow.xaml" this.DemoButton.Click += new System.Windows.RoutedEventHandler(this.DemoButton_Click); #line default #line hidden return; case 6: this.tabControl = ((System.Windows.Controls.TabControl)(target)); return; case 7: this.RSSTreeView = ((System.Windows.Controls.TreeView)(target)); return; case 8: this.FeedData = ((System.Windows.Controls.DataGrid)(target)); return; case 10: #line 236 "..\..\MainWindow.xaml" ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Select_SelectionChanged); #line default #line hidden return; case 11: this.button = ((System.Windows.Controls.Button)(target)); #line 243 "..\..\MainWindow.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.MarkAsRead_Click); #line default #line hidden return; case 12: this.button1 = ((System.Windows.Controls.Button)(target)); #line 244 "..\..\MainWindow.xaml" this.button1.Click += new System.Windows.RoutedEventHandler(this.MarkAsUnread_Click); #line default #line hidden return; case 13: this.HideRead = ((System.Windows.Controls.CheckBox)(target)); #line 245 "..\..\MainWindow.xaml" this.HideRead.Checked += new System.Windows.RoutedEventHandler(this.OnItemSelected); #line default #line hidden #line 245 "..\..\MainWindow.xaml" this.HideRead.Unchecked += new System.Windows.RoutedEventHandler(this.OnItemSelected); #line default #line hidden return; case 14: this.label = ((System.Windows.Controls.Label)(target)); return; case 15: this.Display = ((System.Windows.Controls.ComboBox)(target)); #line 248 "..\..\MainWindow.xaml" this.Display.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Quantity_SelectionChanged); #line default #line hidden return; case 16: this.Browser = ((System.Windows.Controls.WebBrowser)(target)); return; case 17: this.FavoriteButton = ((System.Windows.Controls.Button)(target)); #line 257 "..\..\MainWindow.xaml" this.FavoriteButton.Click += new System.Windows.RoutedEventHandler(this.FavoriteButton_Click); #line default #line hidden return; case 18: this.UnFavoriteButton = ((System.Windows.Controls.Button)(target)); #line 258 "..\..\MainWindow.xaml" this.UnFavoriteButton.Click += new System.Windows.RoutedEventHandler(this.UnFavoriteButton_Click); #line default #line hidden return; case 19: this.MapTreeView = ((System.Windows.Controls.TreeView)(target)); return; case 21: this.myMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 22: this.ArticlePinPoints = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 23: this.btnNorthAmerica = ((System.Windows.Controls.Button)(target)); #line 354 "..\..\MainWindow.xaml" this.btnNorthAmerica.Click += new System.Windows.RoutedEventHandler(this.ChangeMapView_Click); #line default #line hidden return; case 24: this.changeMapMode = ((System.Windows.Controls.ComboBox)(target)); return; case 25: #line 367 "..\..\MainWindow.xaml" ((System.Windows.Controls.CheckBox)(target)).Checked += new System.Windows.RoutedEventHandler(this.AnimationLevel_SelectionChanged); #line default #line hidden #line 367 "..\..\MainWindow.xaml" ((System.Windows.Controls.CheckBox)(target)).Unchecked += new System.Windows.RoutedEventHandler(this.AnimationLevel_SelectionChanged); #line default #line hidden return; case 26: this.txtLatitude = ((System.Windows.Controls.TextBox)(target)); return; case 27: this.txtLongitude = ((System.Windows.Controls.TextBox)(target)); return; case 28: this.MapBrowser = ((System.Windows.Controls.WebBrowser)(target)); return; case 29: this.Topic_RSSTreeView = ((System.Windows.Controls.TreeView)(target)); return; case 31: this.Topic_FeedData = ((System.Windows.Controls.DataGrid)(target)); return; case 33: #line 517 "..\..\MainWindow.xaml" ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Select_SelectionChanged2); #line default #line hidden return; case 34: this.Topic_MarkReadButton = ((System.Windows.Controls.Button)(target)); #line 524 "..\..\MainWindow.xaml" this.Topic_MarkReadButton.Click += new System.Windows.RoutedEventHandler(this.MarkAsRead_Click2); #line default #line hidden return; case 35: this.Topic_MarkUnreadButton = ((System.Windows.Controls.Button)(target)); #line 525 "..\..\MainWindow.xaml" this.Topic_MarkUnreadButton.Click += new System.Windows.RoutedEventHandler(this.MarkAsUnread_Click2); #line default #line hidden return; case 36: this.Topic_Bookmark = ((System.Windows.Controls.Button)(target)); #line 526 "..\..\MainWindow.xaml" this.Topic_Bookmark.Click += new System.Windows.RoutedEventHandler(this.Topic_Bookmark_Click); #line default #line hidden return; case 37: this.Topic_HideRead = ((System.Windows.Controls.CheckBox)(target)); #line 528 "..\..\MainWindow.xaml" this.Topic_HideRead.Checked += new System.Windows.RoutedEventHandler(this.OnItemSelected); #line default #line hidden #line 528 "..\..\MainWindow.xaml" this.Topic_HideRead.Unchecked += new System.Windows.RoutedEventHandler(this.OnItemSelected); #line default #line hidden return; case 38: this.Topic_label = ((System.Windows.Controls.Label)(target)); return; case 39: this.Topic_Display = ((System.Windows.Controls.ComboBox)(target)); #line 531 "..\..\MainWindow.xaml" this.Topic_Display.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Quantity_SelectionChanged2); #line default #line hidden return; case 40: this.Topic_Browser = ((System.Windows.Controls.WebBrowser)(target)); return; case 41: this.Topic_Text = ((System.Windows.Controls.TextBox)(target)); return; case 42: this.Topic_Combo = ((System.Windows.Controls.ComboBox)(target)); return; case 43: this.Topic_ComboNewTopic = ((System.Windows.Controls.TextBox)(target)); #line 542 "..\..\MainWindow.xaml" this.Topic_ComboNewTopic.GotFocus += new System.Windows.RoutedEventHandler(this.Topic_ComboNewTopic_GotFocus); #line default #line hidden #line 542 "..\..\MainWindow.xaml" this.Topic_ComboNewTopic.LostFocus += new System.Windows.RoutedEventHandler(this.Topic_ComboNewTopic_LostFocus); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.bingMap = ((Microsoft.Maps.MapControl.WPF.Map)(target)); return; case 2: this.mapLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target)); return; case 3: this.photo = ((System.Windows.Controls.Image)(target)); return; case 4: this.openfile = ((System.Windows.Controls.Button)(target)); #line 26 "..\..\MainWindow.xaml" this.openfile.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 5: this.exifmessage = ((System.Windows.Controls.TextBox)(target)); #line 27 "..\..\MainWindow.xaml" this.exifmessage.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged); #line default #line hidden return; case 6: this.latitudemessage = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.longitudemessage = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.RemoveButton = ((System.Windows.Controls.Button)(target)); #line 30 "..\..\MainWindow.xaml" this.RemoveButton.Click += new System.Windows.RoutedEventHandler(this.RemoveButton_Click); #line default #line hidden return; case 9: this.CloseApp = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\MainWindow.xaml" this.CloseApp.Click += new System.Windows.RoutedEventHandler(this.CloseApp_Click); #line default #line hidden return; } this._contentLoaded = true; }