Ejemplo n.º 1
1
        public MapArr(GMapControl m, string location)
        {
            Map = m;
             Location = location;

             Map.SetCurrentPositionByKeywords(Location);
        }
Ejemplo n.º 2
1
        public void addMarker(GMapControl _control, String location)
        {
            _control.SetPositionByKeywords(location);
               GMap.NET.PointLatLng pt1 = _control.Position;
               GMapMarker marker1 = new GMapMarker(pt1);
               marker1.Shape = new MarkerTemplate();
               marker1.ZIndex = 1;
               _control.Markers.Add(marker1);

               Console.WriteLine("Should be added");
        }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TransitionigContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;

            case 2:
                this.gMapcontrol = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 17 "..\..\MapsPage.xaml"
                this.gMapcontrol.Loaded += new System.Windows.RoutedEventHandler(this.GMapcontrol_Loaded);

            #line default
            #line hidden
                return;

            case 3:
                this.ListViewStreet = ((System.Windows.Controls.ListView)(target));

            #line 20 "..\..\MapsPage.xaml"
                this.ListViewStreet.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListViewStreet_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.txtLat = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.txtLon = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.btnAccept = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.imgProjection = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.stackCoordinateProjection = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.map = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.map.Loaded += new System.Windows.RoutedEventHandler(this.map_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.start = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.start.Click += new System.Windows.RoutedEventHandler(this.start_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 6
0
        /// <summary>
        /// regenerates shape of route
        /// </summary>
        public virtual void RegenerateShape(GMapControl map)
        {
            if (map != null)
            {
                this.Map = map;

                if(Points.Count > 1)
                {
                   Position = Points[0];
                    
                   var localPath = new List<System.Windows.Point>(Points.Count);
                   var offset = Map.FromLatLngToLocal(Points[0]);
                   foreach(var i in Points)
                   {
                      var p = Map.FromLatLngToLocal(i);
                      localPath.Add(new System.Windows.Point(p.X - offset.X, p.Y - offset.Y));
                   }
    
                   var shape = map.CreateRoutePath(localPath);
    
                   if(this.Shape is Path)
                   {
                      (this.Shape as Path).Data = shape.Data;
                   }
                   else
                   {
                      this.Shape = shape;
                   }
                }
                else
                {
                   this.Shape = null;
                }
            }
        }
Ejemplo n.º 7
0
 public Map(GMapControl _gmap)
 {
     gmap = _gmap;
     gmap.MapProvider = GMap.NET.MapProviders.OpenStreetMapProvider.Instance;
     GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerAndCache;
     gmap.Position = new PointLatLng(-25.971684, 32.589759);
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\..\..\Views\LiveWeather\MapView.xaml"
                ((AutomatedWeatherStation.Views.LiveWeather.MapView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MapView_OnLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.MapControl = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

            case 3:
                this.btnCenter = ((System.Windows.Controls.Button)(target));

            #line 211 "..\..\..\..\Views\LiveWeather\MapView.xaml"
                this.btnCenter.Click += new System.Windows.RoutedEventHandler(this.BtnCenter_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\MainWindow.xaml"
                ((ExamSearchBank.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.spInfo = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:
                this.tbNamePunkt = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.tbAddress = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.tbPhone = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.tbStartTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.tbEndTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.tbStartLunchTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.tbEndLunchTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.tbMaintenanceTimeStart = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.tbMaintenanceTimeEnd = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.gMapControl = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 10
0
 private MapHelper(GMapControl map)
 {
     _map = map;
     map.Loaded += (o, args) => ReDrawElements();
     map.SizeChanged += (o, args) => ReDrawElements();
     map.OnMapZoomChanged += ReDrawElements;
     map.OnMapDrag += ReDrawElements;
 }
Ejemplo n.º 11
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.gMapCtrl = ((GMap.NET.WindowsPresentation.GMapControl)(target));
         return;
     }
     this._contentLoaded = true;
 }
 private void Load_map(GMap.NET.WindowsPresentation.GMapControl map)
 {
     //map.CacheLocation = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
     map.MapProvider = GMap.NET.MapProviders.GoogleChinaSatelliteMapProvider.Instance;
     map.MinZoom     = 11;
     map.MaxZoom     = 20;
     map.Zoom        = 17;
     map.CanDragMap  = true;
     map.DragButton  = MouseButton.Left;
     map.Position    = new PointLatLng(start_lat, start_lon);
 }
Ejemplo n.º 13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.locations = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 2:
                this.UserMap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mx_map = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

            case 2:
                this.mx_comPortsPanels = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Address = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.Zoom = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.Go = ((System.Windows.Controls.Button)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.Go.Click += new System.Windows.RoutedEventHandler(this.Go_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.AddHelper = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.AddHelper.Click += new System.Windows.RoutedEventHandler(this.AddHelper_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.mapView = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.mapView.Loaded += new System.Windows.RoutedEventHandler(this.mapView_Loaded);

            #line default
            #line hidden

            #line 20 "..\..\MainWindow.xaml"
                this.mapView.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.rightMouse);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Outputbox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.RadiusLable = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.Radius = ((System.Windows.Controls.TextBox)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.Radius.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 4:

            #line 14 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Gmap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

            case 6:

            #line 18 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 7:
                this.AmountText = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 17
0
        public MapController(GMapControl mapControl, Canvas markerCanvas)
        {
            _mapControl = mapControl;
            _markerCanvas = markerCanvas;

            GMaps.Instance.Mode = AccessMode.CacheOnly;
            _mapControl.MinZoom = 0;
            _mapControl.MaxZoom = 30;
            _mapControl.Zoom = 16;
            _mapControl.MapProvider = OpenCycleLandscapeMapProvider.Instance;
            _mapControl.SetPositionByKeywords("Poznań, Tysiąclecia 8, Poland");

            _mapControl.OnMapDrag += UpdateMarkerControlPositions;
            _mapControl.OnMapZoomChanged += UpdateMarkerControlPositions;
        }
Ejemplo n.º 18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mapView = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 11 "..\..\..\View\VetMap.xaml"
                this.mapView.Loaded += new System.Windows.RoutedEventHandler(this.mapView_Loaded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 19
0
        public Window1()
        {
            InitializeComponent();

             ObservableCollection<MapArr> mapCtrl = new ObservableCollection<MapArr>();

             // 1
             {
            GMapControl map = new GMapControl();
            map.MapType = GMap.NET.MapType.OpenStreetMap;
            map.MinZoom = 4;
            map.MaxZoom = map.MinZoom + 3;
            map.Zoom = map.MinZoom;
            mapCtrl.Add(new MapArr(map, "Holand"));
             }

             // 2
             {
            GMapControl map = new GMapControl();
            map.MapType = GMap.NET.MapType.BingMap;
            map.MinZoom = 4;
            map.MaxZoom = map.MinZoom + 3;
            map.Zoom = map.MinZoom;
            mapCtrl.Add(new MapArr(map, "New York"));
             }

             // 3
             {
            GMapControl map = new GMapControl();
            map.MapType = GMap.NET.MapType.YahooMap;
            map.MinZoom = 4;
            map.MaxZoom = map.MinZoom + 3;
            map.Zoom = map.MinZoom;
            mapCtrl.Add(new MapArr(map, "Lithuania"));
             }

             // main
             UserMap.MapType = GMap.NET.MapType.GoogleMap;
             UserMap.MinZoom = 5;
             UserMap.MaxZoom = 13;
             UserMap.Zoom = 5;
             UserMap.SetCurrentPositionByKeywords("Leuven");

             // add all maps
             locations.ItemsSource = mapCtrl;
        }
Ejemplo n.º 20
0
        public override void RegenerateShape(GMapControl map)
        {
            if (map != null)
            {
                if (Points.Count > 1)
                {
                    var localPath = new List<Point>();
                    var offset = map.FromLatLngToLocal(Points[0]);
                    foreach (PointLatLng i in Points)
                    {
                        var p = map.FromLatLngToLocal(new PointLatLng(i.Lat, i.Lng));
                        localPath.Add(new Point(p.X - offset.X, p.Y - offset.Y));
                    }

                    // Create a StreamGeometry to use to specify myPath.
                    var geometry = new StreamGeometry();

                    using (StreamGeometryContext ctx = geometry.Open())
                    {
                        ctx.BeginFigure(localPath[0], false, false);

                        // Draw a line to the next specified point.
                        ctx.PolyLineTo(localPath, true, true);
                    }

                    // Freeze the geometry (make it unmodifiable)
                    // for additional performance benefits.
                    geometry.Freeze();

                    // Create a path to draw a geometry with.
                    Shape = new Path
                        {
                            Data = geometry,
                            Stroke = Brushes.Gray,
                            StrokeThickness = 3,
                            Opacity = 0.5,
                            IsHitTestVisible = true
                        };
                }
                else
                {
                    Shape = null;
                }
            }
        }
Ejemplo n.º 21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mapgroup = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 2:
                this.MainMap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

            case 3:
                this.progressBar = ((System.Windows.Controls.GroupBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.gmap = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 17 "..\..\Map.xaml"
                this.gmap.Loaded += new System.Windows.RoutedEventHandler(this.gmap_Loaded);

            #line default
            #line hidden

            #line 17 "..\..\Map.xaml"
                this.gmap.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.gmap_MouseDoubleClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mapView = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.mapView.Loaded += new System.Windows.RoutedEventHandler(this.mapView_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.buttonAfficherStatistique = ((System.Windows.Controls.Button)(target));
                return;

            case 3:
                this.logo_png = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            MainMap = new GMapControl();
            main.Children.Add(MainMap);
            MainMap.MapProvider = GMapProviders.OpenStreetMap;
            MainMap.Position = new PointLatLng(50.619900, 26.251617);
            MainMap.MinZoom = 1;
            MainMap.MaxZoom = 20;
            MainMap.Zoom = 9;

            sl = new Slider();
            sl.Orientation = Orientation.Vertical;
            sl.TickPlacement = System.Windows.Controls.Primitives.TickPlacement.Both;
            sl.TickFrequency = 10;
            sl.Maximum = 100;
            sl.Minimum = 1;
            sl.HorizontalAlignment = System.Windows.HorizontalAlignment.Right;
            sl.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;
            sl.Margin = new Thickness(5);
            sl.Value = MainMap.Zoom / MainMap.MaxZoom * sl.Maximum;
            sl.Height = this.Height / 3;
            sl.ValueChanged += sl_ValueChanged;
            main.Children.Add(sl);
        }
Ejemplo n.º 25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Maps = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.Map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.Map.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 3:
                this.combox = ((System.Windows.Controls.ComboBox)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.combox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Combox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.OName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.OList = ((System.Windows.Controls.ListBox)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.OList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OList_SelectionChanged);

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                this.OList.MouseLeave += new System.Windows.Input.MouseEventHandler(this.OList_MouseLeave);

            #line default
            #line hidden
                return;

            case 6:
                this.createra = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.createra.Click += new System.Windows.RoutedEventHandler(this.Createra_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.createrb = ((System.Windows.Controls.RadioButton)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.createrb.Checked += new System.Windows.RoutedEventHandler(this.Createrb_Checked);

            #line default
            #line hidden
                return;

            case 8:
                this.findrb = ((System.Windows.Controls.RadioButton)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.findrb.Checked += new System.Windows.RoutedEventHandler(this.Findrb_Checked);

            #line default
            #line hidden
                return;

            case 9:
                this.objfind = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.finder = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.finder.Click += new System.Windows.RoutedEventHandler(this.Finder_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.clearpoints = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.clearpoints.Click += new System.Windows.RoutedEventHandler(this.Clearpoints_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.ChooseH = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.ChooseH.Click += new System.Windows.RoutedEventHandler(this.ChooseH_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.ChooseD = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.ChooseD.Click += new System.Windows.RoutedEventHandler(this.ChooseD_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.CBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 15:
                this.CallT = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\MainWindow.xaml"
                this.CallT.Click += new System.Windows.RoutedEventHandler(this.CallT_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.l1 = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.l2 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 26
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.Map.Loaded += new System.Windows.RoutedEventHandler(this.MapLoaded);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                this.Map.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                this.Map.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 2:
                this.objType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.objTitle = ((System.Windows.Controls.TextBox)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.objTitle.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.objTitle_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\MainWindow.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.objectList = ((System.Windows.Controls.ListBox)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.objectList.IsEnabledChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.I);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.objectList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Listbox_Mouse_d_click);

            #line default
            #line hidden

            #line 23 "..\..\MainWindow.xaml"
                this.objectList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.objectList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.createObjs = ((System.Windows.Controls.RadioButton)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.createObjs.Checked += new System.Windows.RoutedEventHandler(this.createObjs_Checked);

            #line default
            #line hidden
                return;

            case 9:
                this.find = ((System.Windows.Controls.RadioButton)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.find.Checked += new System.Windows.RoutedEventHandler(this.find_Checked);

            #line default
            #line hidden
                return;

            case 10:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.Clear_but = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.Clear_but.Click += new System.Windows.RoutedEventHandler(this.Clear_but_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.But_ToDest = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\MainWindow.xaml"
                this.But_ToDest.Click += new System.Windows.RoutedEventHandler(this.But_ToDest_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.But_callCar = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.But_callCar.Click += new System.Windows.RoutedEventHandler(this.But_callCar_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.But_Ok = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.But_Ok.Click += new System.Windows.RoutedEventHandler(this.But_Ok_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 27
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.Map.Loaded += new System.Windows.RoutedEventHandler(this.MapLoaded);

            #line default
            #line hidden

            #line 19 "..\..\MainWindow.xaml"
                this.Map.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.radioButtonCreate = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 3:
                this.radioButtonSearch = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 4:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.buttonAddOk = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.buttonAddOk.Click += new System.Windows.RoutedEventHandler(this.ButtonAddOk_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.buttonAddCancel = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.buttonAddCancel.Click += new System.Windows.RoutedEventHandler(this.ButtonAddCancel_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.textBoxSearch = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.buttonSearchOk = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.buttonSearchOk.Click += new System.Windows.RoutedEventHandler(this.ButtonSearchOk_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.listBox = ((System.Windows.Controls.ListBox)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.listBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.ListBox_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 12:
                this.textBoxName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.buttonCall = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.buttonCall.Click += new System.Windows.RoutedEventHandler(this.ButtonCall_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PosBtn = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.PosBtn.Click += new System.Windows.RoutedEventHandler(this.PosBtn_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.CacheBtn = ((System.Windows.Controls.Button)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.CacheBtn.Click += new System.Windows.RoutedEventHandler(this.CacheBtn_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.ClientHubToggle = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 4:
                this.GPS = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\MainWindow.xaml"
                this.GPS.Click += new System.Windows.RoutedEventHandler(this.GPS_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.SCOPE = ((System.Windows.Controls.Button)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.SCOPE.Click += new System.Windows.RoutedEventHandler(this.SCOPE_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.COMS = ((System.Windows.Controls.Button)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.COMS.Click += new System.Windows.RoutedEventHandler(this.COMS_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.mapView = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.mapView.Loaded += new System.Windows.RoutedEventHandler(this.mapView_Loaded);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.mapView.TextInput += new System.Windows.Input.TextCompositionEventHandler(this.mapView_TextInput);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.mapView.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.mapView_MouseRightButtonDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyWindow = ((CarsAndPitsWPF.MainWindow)(target));
                return;

            case 2:
                this.MyGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.mapView = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

            case 4:
                this.MainCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 5:
                this.sliderValuesCount = ((System.Windows.Controls.Slider)(target));
                return;

            case 6:
                this.ValuesCount = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.sliderLevelsCount = ((System.Windows.Controls.Slider)(target));
                return;

            case 8:
                this.LevelsCount = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.SquaresCount = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.Ratio = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.buttonRecalculate = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.MemoryUsage = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.Accuracy = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.buttonSelectFolder = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.progressBarFileLoading = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 30
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.map = ((GMap.NET.WindowsPresentation.GMapControl)(target));
     return;
     case 2:
     this.ZoomSlider = ((System.Windows.Controls.Slider)(target));
     
     #line 46 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
     this.ZoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.ZoomSlider_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.txtLat = ((System.Windows.Controls.TextBox)(target));
     
     #line 55 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
     this.txtLat.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TxtLatTextChanged);
     
     #line default
     #line hidden
     return;
     case 4:
     this.txtLon = ((System.Windows.Controls.TextBox)(target));
     
     #line 56 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
     this.txtLon.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TxtLonTextChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.btnAccept = ((System.Windows.Controls.Button)(target));
     
     #line 57 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
     this.btnAccept.Click += new System.Windows.RoutedEventHandler(this.btnAccept_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.imgProjection = ((System.Windows.Controls.Image)(target));
     return;
     case 7:
     this.stackCoordinateProjection = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 8:
     this.txtHeading = ((System.Windows.Controls.TextBox)(target));
     return;
     case 9:
     this.txtDistance = ((System.Windows.Controls.TextBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\MainWindow.xaml"
                ((spacetrackerb.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.TxtBxGetID = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.BtnMore = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.BtnMore.Click += new System.Windows.RoutedEventHandler(this.BtnMore_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.TxtBlckData = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.TxtBlckEquator = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.BtnGetData = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.BtnGetData.Click += new System.Windows.RoutedEventHandler(this.BtnGetData_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.BtnAddToList = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.BtnAddToList.Click += new System.Windows.RoutedEventHandler(this.BtnAddToList_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.BtnDeleteFromList = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.BtnDeleteFromList.Click += new System.Windows.RoutedEventHandler(this.BtnDeleteFromList_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.LbxTracking = ((System.Windows.Controls.ListBox)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.LbxTracking.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LbxTracking_SelectionChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.TxtBlckMessages = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.BtnShowAll = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.BtnShowAll.Click += new System.Windows.RoutedEventHandler(this.BtnShowAll_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.BtnSave = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.BtnSave.Click += new System.Windows.RoutedEventHandler(this.BtnSave_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.MapView = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.MapView.Loaded += new System.Windows.RoutedEventHandler(this.MapView_Loaded);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 32
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 2:
                this.MapBingOld = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.MapBingOld.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 13 "..\..\MainWindow.xaml"
                this.MapBingOld.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 13 "..\..\MainWindow.xaml"
                this.MapBingOld.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.MapBing = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 16 "..\..\MainWindow.xaml"
                this.MapBing.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.MapBing.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 16 "..\..\MainWindow.xaml"
                this.MapBing.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.MapBingHybrid = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 19 "..\..\MainWindow.xaml"
                this.MapBingHybrid.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 19 "..\..\MainWindow.xaml"
                this.MapBingHybrid.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 19 "..\..\MainWindow.xaml"
                this.MapBingHybrid.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.MapYahoo = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.MapYahoo.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 24 "..\..\MainWindow.xaml"
                this.MapYahoo.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 24 "..\..\MainWindow.xaml"
                this.MapYahoo.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.MapYahooHybrid = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.MapYahooHybrid.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 27 "..\..\MainWindow.xaml"
                this.MapYahooHybrid.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 27 "..\..\MainWindow.xaml"
                this.MapYahooHybrid.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.MapOpenStreet = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.MapOpenStreet.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 32 "..\..\MainWindow.xaml"
                this.MapOpenStreet.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 32 "..\..\MainWindow.xaml"
                this.MapOpenStreet.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.MapOpenStreetOsm = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 35 "..\..\MainWindow.xaml"
                this.MapOpenStreetOsm.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 35 "..\..\MainWindow.xaml"
                this.MapOpenStreetOsm.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 35 "..\..\MainWindow.xaml"
                this.MapOpenStreetOsm.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.MapOpenStreetSurfer = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.MapOpenStreetSurfer.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 38 "..\..\MainWindow.xaml"
                this.MapOpenStreetSurfer.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 38 "..\..\MainWindow.xaml"
                this.MapOpenStreetSurfer.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 10:

            #line 44 "..\..\MainWindow.xaml"
                ((AvalonDock.DocumentPane)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DocumentPane_SelectionChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.MainMap = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.MainMap.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 46 "..\..\MainWindow.xaml"
                this.MainMap.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.MapGoogleHybrid = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 49 "..\..\MainWindow.xaml"
                this.MapGoogleHybrid.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 49 "..\..\MainWindow.xaml"
                this.MapGoogleHybrid.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 49 "..\..\MainWindow.xaml"
                this.MapGoogleHybrid.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.MapGoogleTerrain = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.MapGoogleTerrain.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 52 "..\..\MainWindow.xaml"
                this.MapGoogleTerrain.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 52 "..\..\MainWindow.xaml"
                this.MapGoogleTerrain.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.MapYandexRu = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 55 "..\..\MainWindow.xaml"
                this.MapYandexRu.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 55 "..\..\MainWindow.xaml"
                this.MapYandexRu.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 55 "..\..\MainWindow.xaml"
                this.MapYandexRu.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.MapYandexMapRuHybrid = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 58 "..\..\MainWindow.xaml"
                this.MapYandexMapRuHybrid.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.MapYandexMapRuHybrid.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.MapYandexMapRuHybrid.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.MapLt = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 61 "..\..\MainWindow.xaml"
                this.MapLt.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 61 "..\..\MainWindow.xaml"
                this.MapLt.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 61 "..\..\MainWindow.xaml"
                this.MapLt.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 17:
                this.MapLtHybrid = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 64 "..\..\MainWindow.xaml"
                this.MapLtHybrid.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 64 "..\..\MainWindow.xaml"
                this.MapLtHybrid.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 64 "..\..\MainWindow.xaml"
                this.MapLtHybrid.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.MapArcGISworldTopo = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.MapArcGISworldTopo.Loaded += new System.Windows.RoutedEventHandler(this.GMapControl_Loaded);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.MapArcGISworldTopo.OnMapDrag += new GMap.NET.MapDrag(this.OnMapDrag);

            #line default
            #line hidden

            #line 67 "..\..\MainWindow.xaml"
                this.MapArcGISworldTopo.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.OnMapZoomChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 68 "..\..\MapView.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MapForm_load);

            #line default
            #line hidden
                return;

            case 2:
                this.HelpRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 3:
                this.NoMarkerSelectedRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 4:
                this.MarkerSelectedRow1 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 5:
                this.MarkerSelectedRow2 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 6:
                this.MarkerSelectedRow3 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 7:

            #line 124 "..\..\MapView.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.HelpButtonClick);

            #line default
            #line hidden
                return;

            case 8:
                this.Fromlabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.ToLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.doubledotlabel0 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.StartDayText = ((System.Windows.Controls.TextBox)(target));

            #line 130 "..\..\MapView.xaml"
                this.StartDayText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 12:
                this.StartHoursText = ((System.Windows.Controls.TextBox)(target));

            #line 131 "..\..\MapView.xaml"
                this.StartHoursText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 13:
                this.StartMinutesText = ((System.Windows.Controls.TextBox)(target));

            #line 132 "..\..\MapView.xaml"
                this.StartMinutesText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 14:
                this.StartSecondsText = ((System.Windows.Controls.TextBox)(target));

            #line 133 "..\..\MapView.xaml"
                this.StartSecondsText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 15:
                this.doubledotlabel1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:
                this.FinalDayText = ((System.Windows.Controls.TextBox)(target));

            #line 137 "..\..\MapView.xaml"
                this.FinalDayText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 17:
                this.FinalHoursText = ((System.Windows.Controls.TextBox)(target));

            #line 138 "..\..\MapView.xaml"
                this.FinalHoursText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 18:
                this.FinalMinutesText = ((System.Windows.Controls.TextBox)(target));

            #line 139 "..\..\MapView.xaml"
                this.FinalMinutesText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 19:
                this.FinalSecondsText = ((System.Windows.Controls.TextBox)(target));

            #line 140 "..\..\MapView.xaml"
                this.FinalSecondsText.KeyDown += new System.Windows.Input.KeyEventHandler(this.TimeBoxKey);

            #line default
            #line hidden
                return;

            case 20:
                this.Play = ((System.Windows.Controls.Image)(target));

            #line 141 "..\..\MapView.xaml"
                this.Play.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Play_click);

            #line default
            #line hidden
                return;

            case 21:
                this.PauseBut = ((System.Windows.Controls.Image)(target));

            #line 142 "..\..\MapView.xaml"
                this.PauseBut.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Pause_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.Restart = ((System.Windows.Controls.Image)(target));

            #line 143 "..\..\MapView.xaml"
                this.Restart.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Restart_click);

            #line default
            #line hidden
                return;

            case 23:
                this.CheckBoxshowsmr = ((System.Windows.Controls.CheckBox)(target));

            #line 144 "..\..\MapView.xaml"
                this.CheckBoxshowsmr.Click += new System.Windows.RoutedEventHandler(this.ShowSMR_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.CheckBoxshowmlat = ((System.Windows.Controls.CheckBox)(target));

            #line 145 "..\..\MapView.xaml"
                this.CheckBoxshowmlat.Click += new System.Windows.RoutedEventHandler(this.ShowMLAT_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.CheckBoxshowadsb = ((System.Windows.Controls.CheckBox)(target));

            #line 146 "..\..\MapView.xaml"
                this.CheckBoxshowadsb.Click += new System.Windows.RoutedEventHandler(this.ShowADSB_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.ShowOld = ((System.Windows.Controls.CheckBox)(target));

            #line 147 "..\..\MapView.xaml"
                this.ShowOld.Click += new System.Windows.RoutedEventHandler(this.ShowOldClick);

            #line default
            #line hidden
                return;

            case 27:

            #line 148 "..\..\MapView.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ExportKML_Click);

            #line default
            #line hidden
                return;

            case 28:

            #line 149 "..\..\MapView.xaml"
                ((System.Windows.Controls.TextBlock)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ExportKML_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.X1 = ((System.Windows.Controls.TextBlock)(target));

            #line 153 "..\..\MapView.xaml"
                this.X1.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.X1_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.X2 = ((System.Windows.Controls.TextBlock)(target));

            #line 154 "..\..\MapView.xaml"
                this.X2.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.X2_click);

            #line default
            #line hidden
                return;

            case 31:
                this.X5 = ((System.Windows.Controls.TextBlock)(target));

            #line 155 "..\..\MapView.xaml"
                this.X5.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.X5_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.X10 = ((System.Windows.Controls.TextBlock)(target));

            #line 156 "..\..\MapView.xaml"
                this.X10.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.X10_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.X20 = ((System.Windows.Controls.TextBlock)(target));

            #line 157 "..\..\MapView.xaml"
                this.X20.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.X20_Clicl);

            #line default
            #line hidden
                return;

            case 34:
                this.AlertLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.AlertIco = ((System.Windows.Controls.Image)(target));
                return;

            case 36:
                this.HelpLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 37:

            #line 162 "..\..\MapView.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.CloseHelpButton);

            #line default
            #line hidden
                return;

            case 38:
                this.MarkerInfoView = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 39:
                this.ShowFlightHistory = ((System.Windows.Controls.CheckBox)(target));

            #line 195 "..\..\MapView.xaml"
                this.ShowFlightHistory.Click += new System.Windows.RoutedEventHandler(this.ShowVehicleHistoryClick);

            #line default
            #line hidden
                return;

            case 40:
                this.AddLine = ((System.Windows.Controls.Button)(target));

            #line 198 "..\..\MapView.xaml"
                this.AddLine.Click += new System.Windows.RoutedEventHandler(this.AddLineClick);

            #line default
            #line hidden

            #line 198 "..\..\MapView.xaml"
                this.AddLine.LostFocus += new System.Windows.RoutedEventHandler(this.AddLineLostFocus);

            #line default
            #line hidden
                return;

            case 41:
                this.AddLineImage = ((System.Windows.Controls.Image)(target));

            #line 200 "..\..\MapView.xaml"
                this.AddLineImage.LostFocus += new System.Windows.RoutedEventHandler(this.AddLineLostFocus);

            #line default
            #line hidden
                return;

            case 42:

            #line 204 "..\..\MapView.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ShowVehicle_Click);

            #line default
            #line hidden
                return;

            case 43:

            #line 205 "..\..\MapView.xaml"
                ((System.Windows.Controls.TextBlock)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ShowVehicle_Click);

            #line default
            #line hidden
                return;

            case 44:

            #line 206 "..\..\MapView.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ShowOnList_Click);

            #line default
            #line hidden
                return;

            case 45:

            #line 207 "..\..\MapView.xaml"
                ((System.Windows.Controls.TextBlock)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ShowOnList_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.gMapControl1 = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 208 "..\..\MapView.xaml"
                this.gMapControl1.Loaded += new System.Windows.RoutedEventHandler(this.mapView_Loaded);

            #line default
            #line hidden

            #line 208 "..\..\MapView.xaml"
                this.gMapControl1.OnMapDrag += new GMap.NET.MapDrag(this.DragMapEvent);

            #line default
            #line hidden

            #line 208 "..\..\MapView.xaml"
                this.gMapControl1.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.mapclick);

            #line default
            #line hidden
                return;

            case 47:
                this.ChangeView = ((System.Windows.Controls.Button)(target));

            #line 209 "..\..\MapView.xaml"
                this.ChangeView.Click += new System.Windows.RoutedEventHandler(this.ChangeView_click);

            #line default
            #line hidden
                return;

            case 48:
                this.ChangeviewImage = ((System.Windows.Controls.Image)(target));
                return;

            case 49:
                this.Viewbuttontext = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 50:
                this.ViewCCAA = ((System.Windows.Controls.Button)(target));

            #line 215 "..\..\MapView.xaml"
                this.ViewCCAA.Click += new System.Windows.RoutedEventHandler(this.ViewCat_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.ViewCCAAName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 52:
                this.ViewCity = ((System.Windows.Controls.Button)(target));

            #line 221 "..\..\MapView.xaml"
                this.ViewCity.Click += new System.Windows.RoutedEventHandler(this.ViewBcn_Click);

            #line default
            #line hidden
                return;

            case 53:
                this.ViewCityName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 54:
                this.ViewAirport = ((System.Windows.Controls.Button)(target));

            #line 227 "..\..\MapView.xaml"
                this.ViewAirport.Click += new System.Windows.RoutedEventHandler(this.ViewLEBL_Click);

            #line default
            #line hidden
                return;

            case 55:
                this.ViewAirportName = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 34
0
      /// <summary>
      /// regenerates shape of polygon
      /// </summary>
      public virtual void RegeneratePolygonShape(GMapControl map)
      {
         this.map = map;

         if(map != null && Polygon.Count > 1)
         {
            var localPath = new List<System.Windows.Point>();
            var offset = Map.FromLatLngToLocal(Polygon[0]);
            foreach(var i in Polygon)
            {
               var p = Map.FromLatLngToLocal(new PointLatLng(i.Lat, i.Lng));
               localPath.Add(new System.Windows.Point(p.X - offset.X, p.Y - offset.Y));
            }

            var shape = map.CreatePolygonPath(localPath);

            if(this.Shape != null && this.Shape is Path)
            {
               (this.Shape as Path).Data = shape.Data;
            }
            else
            {
               this.Shape = shape;
            }
         }
      }
Ejemplo n.º 35
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.map = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

            case 2:
                this.ZoomSlider = ((System.Windows.Controls.Slider)(target));

            #line 46 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
                this.ZoomSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZoomSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.txtLat = ((System.Windows.Controls.TextBox)(target));

            #line 55 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
                this.txtLat.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TxtLatTextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.txtLon = ((System.Windows.Controls.TextBox)(target));

            #line 56 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
                this.txtLon.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TxtLonTextChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.btnAccept = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\..\..\..\..\CoordinateWindow\Window\Implementation\CoordinateWindow.xaml"
                this.btnAccept.Click += new System.Windows.RoutedEventHandler(this.btnAccept_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.imgProjection = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.stackCoordinateProjection = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.txtHeading = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.txtDistance = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RBcreate = ((System.Windows.Controls.RadioButton)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.RBcreate.Checked += new System.Windows.RoutedEventHandler(this.RBcreate_Checked);

            #line default
            #line hidden
                return;

            case 2:
                this.RBsearchforthenearest = ((System.Windows.Controls.RadioButton)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.RBsearchforthenearest.Checked += new System.Windows.RoutedEventHandler(this.RBsearchforthenearest_Checked);

            #line default
            #line hidden
                return;

            case 3:
                this.Badd = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.Ladd = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.CBobjects = ((System.Windows.Controls.ComboBox)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.CBobjects.Loaded += new System.Windows.RoutedEventHandler(this.CBobjects_Loaded);

            #line default
            #line hidden
                return;

            case 6:
                this.TBname = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.Baddname = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\MainWindow.xaml"
                this.Baddname.Click += new System.Windows.RoutedEventHandler(this.Baddname_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.Breset = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.Breset.Click += new System.Windows.RoutedEventHandler(this.Breset_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.Bsearch = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.Lsearch = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.TBsearch = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.Bfound = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.Bfound.Click += new System.Windows.RoutedEventHandler(this.Bfound_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.Lresult = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.LBresultofsearch = ((System.Windows.Controls.ListBox)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.LBresultofsearch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LBresultofsearch_SelectionChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.gmap = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.Map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.Map.Loaded += new System.Windows.RoutedEventHandler(this.MapLoaded);

            #line default
            #line hidden

            #line 29 "..\..\MainWindow.xaml"
                this.Map.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseDoubleClick);

            #line default
            #line hidden

            #line 29 "..\..\MainWindow.xaml"
                this.Map.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Map_MouseLeave);

            #line default
            #line hidden
                return;

            case 17:
                this.Lx = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.Ly = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.Bcallcar = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.Bcallcar.Click += new System.Windows.RoutedEventHandler(this.Bcallcar_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.pr = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 37
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.Map.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 12 "..\..\MainWindow.xaml"
                this.Map.Loaded += new System.Windows.RoutedEventHandler(this.MapLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.objType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.objTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.objectList = ((System.Windows.Controls.ListBox)(target));

            #line 23 "..\..\MainWindow.xaml"
                this.objectList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ObjectList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.CHm = ((System.Windows.Controls.CheckBox)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.CHm.Checked += new System.Windows.RoutedEventHandler(this.CHm_Checked);

            #line default
            #line hidden
                return;

            case 6:
                this.NCHm = ((System.Windows.Controls.CheckBox)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.NCHm.Checked += new System.Windows.RoutedEventHandler(this.NCHm_Checked);

            #line default
            #line hidden
                return;

            case 7:
                this.poisk = ((System.Windows.Controls.TextBox)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.poisk.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.RoutMap = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.RoutMap.Click += new System.Windows.RoutedEventHandler(this.RoutMap_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 38
0
 public static MapHelper SetInstance(GMapControl map)
 {
     return _instance ?? (_instance = new MapHelper(map));
 }
Ejemplo n.º 39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MenuRight = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 2:
                this.MenuLeft = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 3:
                this.gmap = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 21 "..\..\Map.xaml"
                this.gmap.Loaded += new System.Windows.RoutedEventHandler(this.gmap_Loaded);

            #line default
            #line hidden

            #line 21 "..\..\Map.xaml"
                this.gmap.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.gmap_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 4:

            #line 23 "..\..\Map.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 5:
                this.TextFiltr = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.Country = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 7:
                this.City = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 8:
                this.Duration = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 9:
                this.Type = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 10:
                this.But_Filtr = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\Map.xaml"
                this.But_Filtr.Click += new System.Windows.RoutedEventHandler(this.But_Filtr_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.Create_Route = ((System.Windows.Controls.Button)(target));
                return;

            case 12:
                this.ListRoute = ((System.Windows.Controls.ListBox)(target));

            #line 48 "..\..\Map.xaml"
                this.ListRoute.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListRoute_SelectionChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.But_Like = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\Map.xaml"
                this.But_Like.Click += new System.Windows.RoutedEventHandler(this.But_Like_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.Route_Descript = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.But_Comment = ((System.Windows.Controls.Button)(target));

            #line 58 "..\..\Map.xaml"
                this.But_Comment.Click += new System.Windows.RoutedEventHandler(this.But_Comment_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.But_Complaite = ((System.Windows.Controls.Button)(target));

            #line 59 "..\..\Map.xaml"
                this.But_Complaite.Click += new System.Windows.RoutedEventHandler(this.But_Complaite_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.Create_Map = ((System.Windows.Controls.Button)(target));

            #line 87 "..\..\Map.xaml"
                this.Create_Map.Click += new System.Windows.RoutedEventHandler(this.Create_Map_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.Change_Route = ((System.Windows.Controls.Button)(target));
                return;

            case 19:
                this.Save_Route = ((System.Windows.Controls.Button)(target));
                return;

            case 20:
                this.ListDot = ((System.Windows.Controls.ListBox)(target));

            #line 90 "..\..\Map.xaml"
                this.ListDot.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListDot_SelectionChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.DotName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.DotDescript = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.DotCoord = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.DotImage = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.DotSave = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 40
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.txtLat = ((System.Windows.Controls.TextBox)(target));
     return;
     case 2:
     this.txtLon = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.btnAccept = ((System.Windows.Controls.Button)(target));
     return;
     case 4:
     this.imgProjection = ((System.Windows.Controls.Image)(target));
     return;
     case 5:
     this.stackCoordinateProjection = ((System.Windows.Controls.StackPanel)(target));
     return;
     case 6:
     this.map = ((GMap.NET.WindowsPresentation.GMapControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 41
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 11 "..\..\MainWindow.xaml"
     ((I_see_you.MainWindow)(target)).Closed += new System.EventHandler(this.CloseWindowISO);
     
     #line default
     #line hidden
     return;
     case 2:
     this.gMapControl1 = ((GMap.NET.WindowsPresentation.GMapControl)(target));
     
     #line 17 "..\..\MainWindow.xaml"
     this.gMapControl1.OnMapZoomChanged += new GMap.NET.MapZoomChanged(this.ZoomingMap);
     
     #line default
     #line hidden
     return;
     case 3:
     this.MesageName = ((I_see_you.WindowMesageUser)(target));
     return;
     case 4:
     this.LablSetings = ((System.Windows.Controls.Label)(target));
     return;
     case 5:
     this.ListConnections = ((System.Windows.Controls.ListView)(target));
     return;
     case 6:
     this.ErorMesa = ((System.Windows.Controls.Label)(target));
     return;
     case 7:
     
     #line 31 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowInstal);
     
     #line default
     #line hidden
     
     #line 31 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.LeaveShow);
     
     #line default
     #line hidden
     
     #line 31 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.EnterShow);
     
     #line default
     #line hidden
     return;
     case 8:
     this.SliderZoom = ((System.Windows.Controls.Slider)(target));
     
     #line 36 "..\..\MainWindow.xaml"
     this.SliderZoom.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.SliderZoom_ValueChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.InsFlip = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 10:
     this.IpServer = ((System.Windows.Controls.TextBox)(target));
     return;
     case 11:
     this.ButtonRec = ((System.Windows.Controls.Button)(target));
     
     #line 55 "..\..\MainWindow.xaml"
     this.ButtonRec.Click += new System.Windows.RoutedEventHandler(this.ReConnect);
     
     #line default
     #line hidden
     return;
     case 12:
     this.StatusConnect = ((System.Windows.Controls.Label)(target));
     return;
     case 13:
     
     #line 57 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DisconnectEvent);
     
     #line default
     #line hidden
     return;
     case 14:
     
     #line 65 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Clear_map);
     
     #line default
     #line hidden
     return;
     case 15:
     this.MapChenges = ((System.Windows.Controls.ComboBox)(target));
     
     #line 66 "..\..\MainWindow.xaml"
     this.MapChenges.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SelectionMapBox);
     
     #line default
     #line hidden
     return;
     case 16:
     
     #line 78 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GetPacket);
     
     #line default
     #line hidden
     return;
     case 17:
     
     #line 79 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GetPacketDisconected);
     
     #line default
     #line hidden
     return;
     case 18:
     
     #line 80 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GetPacketNewName);
     
     #line default
     #line hidden
     return;
     case 19:
     this.PodrobInfo = ((MahApps.Metro.Controls.Flyout)(target));
     return;
     case 20:
     this.AvatarUser = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 21:
     this.LoginText = ((System.Windows.Controls.Label)(target));
     return;
     case 22:
     this.TextName = ((System.Windows.Controls.Label)(target));
     return;
     case 23:
     this.TextLname = ((System.Windows.Controls.Label)(target));
     return;
     case 24:
     this.TextAge = ((System.Windows.Controls.Label)(target));
     return;
     case 25:
     this.TextSex = ((System.Windows.Controls.Label)(target));
     return;
     case 26:
     this.TextEmail = ((System.Windows.Controls.Label)(target));
     return;
     case 27:
     this.CordText = ((System.Windows.Controls.Label)(target));
     return;
     case 28:
     this.AddresText = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 42
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.txtCanvas = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 2:
     this.lblSelectEmail = ((System.Windows.Controls.Label)(target));
     return;
     case 3:
     this.btnSelectEmail = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\..\..\..\Pages\Email\EmailLocatorFolder\Single.xaml"
     this.btnSelectEmail.Click += new System.Windows.RoutedEventHandler(this.btnSelectEmail_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.gmap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 43
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.locations = ((System.Windows.Controls.ItemsControl)(target));
     return;
     case 2:
     this.UserMap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 44
0
 /// <summary>
 /// forces to update local marker  position
 /// dot not call it if you don't really need to ;}
 /// </summary>
 /// <param name="m"></param>
 internal void ForceUpdateLocalPosition(GMapControl m)
 {
    if(m != null)
    {
       map = m;
    }
    UpdateLocalPosition();
 }
Ejemplo n.º 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Kamera_Liste = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 2:
                this.Port_Liste = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.mapView = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.mapView.Loaded += new System.Windows.RoutedEventHandler(this.mapView_Loaded);

            #line default
            #line hidden
                return;

            case 4:

            #line 38 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 39 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 6:

            #line 40 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3);

            #line default
            #line hidden
                return;

            case 7:

            #line 41 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_4);

            #line default
            #line hidden
                return;

            case 8:
                this.Connect_button = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.Connect_button.Click += new System.Windows.RoutedEventHandler(this.Button_Click_5);

            #line default
            #line hidden
                return;

            case 9:
                this.Telemetry_text = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.Orders = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.Orders_status = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.Debug_output = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.Course_SP = ((System.Windows.Controls.TextBox)(target));

            #line 80 "..\..\MainWindow.xaml"
                this.Course_SP.KeyDown += new System.Windows.Input.KeyEventHandler(this.Course_SP_KeyDown);

            #line default
            #line hidden
                return;

            case 14:

            #line 82 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 15:
                this.frameHolder = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 46
0
        public override void RegenerateShape(GMapControl map)
        {
            if (map != null)
            {
                if (Points.Count > 1)
                {
                    var localPath = new List<Point>();
                    var offset = map.FromLatLngToLocal(Points[0]);
                    foreach (PointLatLng i in Points)
                    {
                        var p = map.FromLatLngToLocal(new PointLatLng(i.Lat, i.Lng));
                        localPath.Add(new Point(p.X - offset.X, p.Y - offset.Y));
                    }

                    // Create a StreamGeometry to use to specify myPath.
                    var geometry = new StreamGeometry();

                    using (StreamGeometryContext ctx = geometry.Open())
                    {
                        ctx.BeginFigure(localPath[0], true, true);

                        // Draw a line to the next specified point.
                        ctx.PolyLineTo(localPath, true, true);
                    }

                    // Freeze the geometry (make it unmodifiable)
                    // for additional performance benefits.
                    geometry.Freeze();

                    var fillBrush = new SolidColorBrush();
                    BindingOperations.SetBinding(fillBrush, SolidColorBrush.ColorProperty, new Binding("Variety.ClusterIndex") {Converter = new IndexToColorConverter(), ConverterParameter = Colors.CornflowerBlue});
                    var strokeBrush = new SolidColorBrush();
                    BindingOperations.SetBinding(strokeBrush, SolidColorBrush.ColorProperty, new Binding("Color") {Source = fillBrush, Converter = new ColorBrightnessConverter(), ConverterParameter = -0.15});
                    // Create a path to draw a geometry with.
                    var path = new Path
                        {
                            Data = geometry,
                            Effect = new BlurEffect {KernelType = KernelType.Gaussian, Radius = 3.0, RenderingBias = RenderingBias.Quality},
                            Stroke = strokeBrush,
                            Fill = fillBrush,
                            StrokeThickness = 3,
                            Opacity = 0.5,
                            IsHitTestVisible = true,
                            DataContext = _region,
                            Visibility = Shape == null ? Visibility.Visible : Shape.Visibility
                        };
                    Shape = path;
                    Shape.MouseEnter += Shape_MouseEnter;
                    Shape.MouseLeave += Region_MouseLeave;
                }
                else
                {
                    Shape = null;
                }
            }
        }
Ejemplo n.º 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

            #line 11 "..\..\MainWindow.xaml"
                this.Map.Loaded += new System.Windows.RoutedEventHandler(this.MapLoaded);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                this.Map.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.create = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 3:
                this.search = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 4:
                this.markerBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.markerTitle = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.Ok = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.Ok.Click += new System.Windows.RoutedEventHandler(this.Ok_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Reset = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.Reset.Click += new System.Windows.RoutedEventHandler(this.Reset_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.markerTitle1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.Ok1 = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.Ok1.Click += new System.Windows.RoutedEventHandler(this.Ok1_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.searchResults = ((System.Windows.Controls.ListView)(target));
                return;

            case 11:
                this.Go = ((System.Windows.Controls.Button)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.Go.Click += new System.Windows.RoutedEventHandler(this.Go_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main_Window = ((XMonitor_GUI.MainWindow)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.Main_Window.Closing += new System.ComponentModel.CancelEventHandler(this.MainWindowCosing);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                this.Main_Window.SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden

            #line 15 "..\..\MainWindow.xaml"
                this.Main_Window.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.MainMap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
                return;

            case 3:
                this.Copyright = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.BaseWidth = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 5:
                this.BaseColumn = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 6:
                this.BaseRow = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 7:
                this.BaseHeight = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 8:
                this.LeftsideArea = ((System.Windows.Controls.Canvas)(target));
                return;

            case 9:
                this.TopArea = ((System.Windows.Controls.Canvas)(target));
                return;

            case 10:
                this.RightsideArea = ((System.Windows.Controls.Canvas)(target));
                return;

            case 11:
                this.TimerName = ((ControlsUnit.TimerView)(target));
                return;

            case 12:
                this.BatteryName = ((ControlsUnit.BatteryView)(target));
                return;

            case 13:
                this.GPSName = ((ControlsUnit.GPSView)(target));
                return;

            case 14:
                this.LinkName = ((ControlsUnit.LinkView)(target));
                return;

            case 15:
                this.RCrecName = ((ControlsUnit.RCrecView)(target));
                return;

            case 16:
                this.ControlModeName = ((ControlsUnit.ControlModeView)(target));
                return;

            case 17:
                this.FlightModeName = ((ControlsUnit.FlightModeView)(target));
                return;

            case 18:
                this.SpeedName = ((ControlsUnit.SpeedView)(target));
                return;

            case 19:
                this.Altitude = ((ControlsUnit.UAVAltitude)(target));
                return;

            case 20:
                this.OpenFlightPlan = ((System.Windows.Controls.MenuItem)(target));

            #line 112 "..\..\MainWindow.xaml"
                this.OpenFlightPlan.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FplaOpen);

            #line default
            #line hidden
                return;

            case 21:
                this.CloseFlightPlan = ((System.Windows.Controls.MenuItem)(target));

            #line 113 "..\..\MainWindow.xaml"
                this.CloseFlightPlan.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FplaClose);

            #line default
            #line hidden
                return;

            case 22:
                this.SendFlightPlan = ((System.Windows.Controls.MenuItem)(target));

            #line 114 "..\..\MainWindow.xaml"
                this.SendFlightPlan.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FplaTrans);

            #line default
            #line hidden
                return;

            case 23:
                this.ListFlightPlan = ((System.Windows.Controls.MenuItem)(target));

            #line 115 "..\..\MainWindow.xaml"
                this.ListFlightPlan.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FplaData);

            #line default
            #line hidden
                return;

            case 24:
                this.OpenFlightLog = ((System.Windows.Controls.MenuItem)(target));

            #line 117 "..\..\MainWindow.xaml"
                this.OpenFlightLog.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FlogOpen);

            #line default
            #line hidden
                return;

            case 25:
                this.CloseFlightLog = ((System.Windows.Controls.MenuItem)(target));

            #line 118 "..\..\MainWindow.xaml"
                this.CloseFlightLog.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FlogClose);

            #line default
            #line hidden
                return;

            case 26:
                this.SaveFlightLog = ((System.Windows.Controls.MenuItem)(target));

            #line 119 "..\..\MainWindow.xaml"
                this.SaveFlightLog.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_FlogSave);

            #line default
            #line hidden
                return;

            case 27:
                this.OpenExplorer = ((System.Windows.Controls.MenuItem)(target));

            #line 120 "..\..\MainWindow.xaml"
                this.OpenExplorer.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_OpenExplorer);

            #line default
            #line hidden
                return;

            case 28:

            #line 123 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_UAVData);

            #line default
            #line hidden
                return;

            case 29:

            #line 124 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_Setting);

            #line default
            #line hidden
                return;

            case 30:

            #line 125 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_Manual);

            #line default
            #line hidden
                return;

            case 31:

            #line 126 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_About);

            #line default
            #line hidden
                return;

            case 32:

            #line 128 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_End);

            #line default
            #line hidden
                return;

            case 33:
                this.MarkerIcon = ((System.Windows.Controls.Canvas)(target));

            #line 134 "..\..\MainWindow.xaml"
                this.MarkerIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MarkerIcon_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 34:
                this.TouchIcon = ((System.Windows.Controls.Canvas)(target));

            #line 139 "..\..\MainWindow.xaml"
                this.TouchIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TouchIconMouse);

            #line default
            #line hidden
                return;

            case 35:
                this.SettingIcon = ((System.Windows.Controls.Canvas)(target));

            #line 140 "..\..\MainWindow.xaml"
                this.SettingIcon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.SettingIconMouseLeftButton);

            #line default
            #line hidden
                return;

            case 36:
                this.GridLine = ((System.Windows.Controls.Border)(target));
                return;

            case 37:
                this.canvas = ((System.Windows.Controls.Canvas)(target));

            #line 152 "..\..\MainWindow.xaml"
                this.canvas.Loaded += new System.Windows.RoutedEventHandler(this.canvas_Loaded);

            #line default
            #line hidden

            #line 153 "..\..\MainWindow.xaml"
                this.canvas.SizeChanged += new System.Windows.SizeChangedEventHandler(this.canvas_SizeChanged);

            #line default
            #line hidden
                return;

            case 38:
                this.Arrow = ((System.Windows.Controls.Grid)(target));
                return;

            case 39:
                this.DisArrow = ((System.Windows.Controls.Grid)(target));
                return;

            case 40:
                this.Dis1 = ((System.Windows.Shapes.Line)(target));
                return;

            case 41:
                this.Dis2 = ((System.Windows.Shapes.Line)(target));
                return;

            case 42:
                this.Dis3 = ((System.Windows.Shapes.Line)(target));
                return;

            case 43:
                this.DisName = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.User1 = ((System.Windows.Controls.Label)(target));
                return;

            case 45:
                this.User2 = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.User3 = ((System.Windows.Controls.Label)(target));
                return;

            case 47:
                this.User4 = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.PosSet = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.PosSpd = ((System.Windows.Controls.Label)(target));

            #line 186 "..\..\MainWindow.xaml"
                this.PosSpd.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.PosSpd_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 50:
                this.PosClear = ((System.Windows.Controls.Label)(target));
                return;

            case 51:
                this.MapRotate = ((ControlsUnit.RotateAzimuthal)(target));

            #line 188 "..\..\MainWindow.xaml"
                this.MapRotate.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.RotateAzimuthalValueChanged);

            #line default
            #line hidden

            #line 188 "..\..\MainWindow.xaml"
                this.MapRotate.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MapRotate_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 52:
                this.Container = ((WPF.MDI.MdiContainer)(target));

            #line 195 "..\..\MainWindow.xaml"
                this.Container.SizeChanged += new System.Windows.SizeChangedEventHandler(this.OptionAreaSizeChanged);

            #line default
            #line hidden
                return;

            case 53:
                this.cm = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 54:

            #line 198 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.WaypointWindow_Click);

            #line default
            #line hidden
                return;

            case 55:

            #line 199 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ChartWindow_Click);

            #line default
            #line hidden
                return;

            case 56:

            #line 200 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ApplicationWindow_Click);

            #line default
            #line hidden
                return;

            case 57:

            #line 201 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ModelWindow_Click);

            #line default
            #line hidden
                return;

            case 58:

            #line 203 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Cascade_Click);

            #line default
            #line hidden
                return;

            case 59:

            #line 204 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Horizontally_Click);

            #line default
            #line hidden
                return;

            case 60:

            #line 205 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Vertically_Click);

            #line default
            #line hidden
                return;

            case 61:

            #line 207 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseAll_Click);

            #line default
            #line hidden
                return;

            case 62:
                this.OptionGridSplitter = ((System.Windows.Controls.GridSplitter)(target));
                return;

            case 63:
                this.ZoomName = ((ControlsUnit.MapZoom)(target));

            #line 221 "..\..\MainWindow.xaml"
                this.ZoomName.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MapZoomChanged);

            #line default
            #line hidden
                return;

            case 64:
                this.AlertMessageName = ((ControlsUnit.AlarmMessage)(target));
                return;

            case 65:
                this.PlayerSlide = ((ControlsUnit.TrimmingSlide)(target));

            #line 231 "..\..\MainWindow.xaml"
                this.PlayerSlide.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.PlayerSlide_ValueChanged);

            #line default
            #line hidden
                return;

            case 66:
                this.test = ((System.Windows.Controls.TextBox)(target));
                return;

            case 67:
                this.TransmitWindow = ((System.Windows.Controls.Grid)(target));
                return;

            case 68:

            #line 257 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TransmitClosingButton_Click);

            #line default
            #line hidden
                return;

            case 69:
                this.TransmitBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 70:

            #line 261 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TransmitButton_Click);

            #line default
            #line hidden
                return;

            case 71:

            #line 262 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.TransmitCancelButton_Click);

            #line default
            #line hidden
                return;

            case 72:
                this.WaitWindow = ((System.Windows.Controls.Label)(target));
                return;

            case 73:
                this.TopCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 74:
                this.VersionName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 75:

            #line 283 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MinWindowButton_Click);

            #line default
            #line hidden
                return;

            case 76:

            #line 284 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MaxWindowButton_Click);

            #line default
            #line hidden
                return;

            case 77:

            #line 285 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DefaultWindowButton_Click);

            #line default
            #line hidden
                return;

            case 78:

            #line 286 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

            case 79:
                this.me1 = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 80:
                this.me2 = ((System.Windows.Controls.MediaElement)(target));
                return;

            case 81:
                this.SendSound = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 49
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.mapgroup = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 2:
     this.MainMap = ((GMap.NET.WindowsPresentation.GMapControl)(target));
     return;
     case 3:
     this.progressBar = ((System.Windows.Controls.GroupBox)(target));
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 50
-1
        public GMapsding()
        {
            InitializeComponent();
            _control = new GMapControl();
            _control.MapProvider = GoogleMapProvider.Instance;
            _control.SetPositionByKeywords("Nederland");
            _control.MinZoom = 3;
            _control.MaxZoom = 17;
            _control.Zoom = 7;
            _control.ShowCenter = true;
            _control.CanDragMap = true;

            addMarker(_control, "Den Bosch");
            addMarker(_control, "Eindhoven");
            addMarker(_control, "Amsterdam");

            _control.DragButton = MouseButton.Left;
            Map.Content = _control;
        }