Beispiel #1
0
 internal void _StartZoom(VEEventArgs e)
 {
     if (OnStartZoom != null)
     {
         OnStartZoom(this, e);
     }
 }
Beispiel #2
0
 internal void _StartPan(VEEventArgs e)
 {
     if (OnStartPan != null)
     {
         OnStartPan(this, e);
     }
 }
Beispiel #3
0
 internal void _DoubleClick(VEEventArgs e)
 {
     if (OnDoubleClick != null)
     {
         OnDoubleClick(this, e);
     }
 }
Beispiel #4
0
 ///////// Mouse Events
 internal void _Click(VEEventArgs e)
 {
     if (OnClick != null)
     {
         OnClick(this, e);
     }
 }
Beispiel #5
0
 internal void _EndPan(VEEventArgs e)
 {
     if (OnEndPan != null)
     {
         OnEndPan(this, e);
     }
 }
Beispiel #6
0
 // Firing events..., ignore one line typing please.
 ///////// Virtual Earth Events
 internal void _MapLoad(VEEventArgs e)
 {
     if (OnMapLoad != null)
     {
         OnMapLoad(this, e);
     }
 }
Beispiel #7
0
 internal void _MouseOver(VEEventArgs e)
 {
     if (OnMouseOver != null)
     {
         OnMouseOver(this, e);
     }
 }
Beispiel #8
0
 internal void _InitMode(VEEventArgs e)
 {
     if (OnInitMode != null)
     {
         OnInitMode(this, e);
     }
 }
Beispiel #9
0
 internal void _MouseWheel(VEEventArgs e)
 {
     if (OnMouseWheel != null)
     {
         OnMouseWheel(this, e);
     }
 }
Beispiel #10
0
 internal void _MouseOut(VEEventArgs e)
 {
     if (OnMouseOut != null)
     {
         OnMouseOut(this, e);
     }
 }
Beispiel #11
0
 ///////// Keyboard Events
 internal void _KeyPress(VEEventArgs e)
 {
     if (OnKeyPress != null)
     {
         OnKeyPress(this, e);
     }
 }
Beispiel #12
0
 internal void _KeyUp(VEEventArgs e)
 {
     if (OnKeyUp != null)
     {
         OnKeyUp(this, e);
     }
 }
        // Mouse Event Arguments...
        private VEEventArgs encodeMouseEventArgs(string altKey, string ctrlKey, string elementID,
                                                 string eventName, string leftMouseButton,
                                                 string rightMouseButton, string mapStyle, string sceneID,
                                                 string sceneOrientation, string shiftKey, string clientX,
                                                 string clientY, string screenX, string screenY,
                                                 string mapX, string mapY, string zoomLevel)
        {
            VEEventArgs args = new VEEventArgs();

            args.AltKey    = Convert.ToBoolean(altKey);
            args.CtrlKey   = Convert.ToBoolean(ctrlKey);
            args.ElementID = elementID; args.EventName = eventName;

            args.LeftMouseButton  = Convert.ToBoolean(leftMouseButton);
            args.RightMouseButton = Convert.ToBoolean(rightMouseButton);
            args.MapStyle         = mapStyle;
            args.ShiftKey         = Convert.ToBoolean(shiftKey);
            args.ClientX          = Convert.ToInt32(clientX); args.ClientY = Convert.ToInt32(clientY);
            args.ScreenX          = Convert.ToInt32(screenX);
            args.ScreenY          = Convert.ToInt32(screenY);
            args.MapX             = Convert.ToInt32(mapX); args.MapY = Convert.ToInt32(mapY);
            args.ZoomLevel        = Convert.ToInt32(zoomLevel);

            return(args);
        }
Beispiel #14
0
 internal void _Resize(VEEventArgs e)
 {
     if (OnResize != null)
     {
         OnResize(this, e);
     }
 }
Beispiel #15
0
 internal void _MouseUp(VEEventArgs e)
 {
     if (OnMouseUp != null)
     {
         OnMouseUp(this, e);
     }
 }
Beispiel #16
0
 internal void _ModeNotAvailable(VEEventArgs e)
 {
     if (OnModeNotAvailable != null)
     {
         OnModeNotAvailable(this, e);
     }
 }
Beispiel #17
0
 internal void _MouseDown(VEEventArgs e)
 {
     if (OnMouseDown != null)
     {
         OnMouseDown(this, e);
     }
 }
Beispiel #18
0
 internal void _EndZoom(VEEventArgs e)
 {
     if (OnEndZoom != null)
     {
         OnEndZoom(this, e);
     }
 }
Beispiel #19
0
 internal void _MouseMove(VEEventArgs e)
 {
     if (OnMouseMove != null)
     {
         OnMouseMove(this, e);
     }
 }
Beispiel #20
0
 internal void _ChangeView(VEEventArgs e)
 {
     if (OnChangeView != null)
     {
         OnChangeView(this, e);
     }
 }
Beispiel #21
0
 internal void _ChangeMapStyle(VEEventArgs e)
 {
     if (OnChangeMapStyle != null)
     {
         OnChangeMapStyle(this, e);
     }
 }
        public void OnDoubleClick(string altKey, string ctrlKey, string elementID, string eventName, string leftMouseButton,
                                  string rightMouseButton, string mapStyle, string sceneID, string sceneOrientation, string shiftKey, string clientX,
                                  string clientY, string screenX, string screenY, string mapX, string mapY, string zoomLevel)
        {
            VEEventArgs args = encodeMouseEventArgs(altKey, ctrlKey, elementID, eventName, leftMouseButton, rightMouseButton, mapStyle, sceneID, sceneOrientation, shiftKey, clientX, clientY, screenX, screenY, mapX, mapY, zoomLevel);

            this.map._DoubleClick(args);
        }
        public void OnKeyUp(string altKey, string ctrlKey, string eventName, string keyCode,
                            string mapStyle, string sceneID, string sceneOrientation,
                            string shiftKey, string zoomLevel)
        {
            VEEventArgs args = encodeKeyboardEventArgs(altKey, ctrlKey, eventName, keyCode, mapStyle, sceneID, sceneOrientation, shiftKey, zoomLevel);

            this.map._KeyUp(args);
        }
        // Virtual Earth Event Arguments Initializer...
        private VEEventArgs encodeVirtualEarthEventArgs(string eventName, string mapStyle, string sceneID, string sceneOrientation, string zoomLevel)
        {
            VEEventArgs args = new VEEventArgs();

            args.EventName = eventName;
            args.MapStyle  = mapStyle;
            args.ZoomLevel = Convert.ToInt32(zoomLevel);

            return(args);
        }
        // Keyboard Events Arguments
        private VEEventArgs encodeKeyboardEventArgs(string altKey, string ctrlKey, string eventName, string keyCode,
                                                    string mapStyle, string sceneID, string sceneOrientation,
                                                    string shiftKey, string zoomLevel)
        {
            VEEventArgs args = new VEEventArgs();

            args.AltKey    = Convert.ToBoolean(altKey);
            args.CtrlKey   = Convert.ToBoolean(ctrlKey);
            args.EventName = eventName;
            args.KeyCode   = Convert.ToInt32(keyCode);
            args.MapStyle  = mapStyle;
            args.ShiftKey  = Convert.ToBoolean(shiftKey);
            args.ZoomLevel = Convert.ToInt32(zoomLevel);

            return(args);
        }
        // Keyboard Events Arguments
        private VEEventArgs encodeKeyboardEventArgs(string altKey, string ctrlKey, string eventName, string keyCode,
                               string mapStyle, string sceneID, string sceneOrientation,
                               string shiftKey, string zoomLevel)
        {
            VEEventArgs args = new VEEventArgs();
            args.AltKey = Convert.ToBoolean(altKey);
            args.CtrlKey = Convert.ToBoolean(ctrlKey);
            args.EventName = eventName;
            args.KeyCode = Convert.ToInt32(keyCode);
            args.MapStyle = mapStyle;
            args.ShiftKey = Convert.ToBoolean(shiftKey);
            args.ZoomLevel = Convert.ToInt32(zoomLevel);

            return args;
        }
        public void OnStartZoom(string eventName, string mapStyle, string sceneID, string sceneOrientation, string zoomLevel)
        {
            VEEventArgs args = encodeVirtualEarthEventArgs(eventName, mapStyle, sceneID, sceneOrientation, zoomLevel);

            this.map._StartZoom(args);
        }
Beispiel #28
0
 internal void _EndPan(VEEventArgs e)
 {
     if (OnEndPan != null) OnEndPan(this, e);
 }
Beispiel #29
0
 internal void _InitMode(VEEventArgs e)
 {
     if (OnInitMode != null) OnInitMode(this, e);
 }
Beispiel #30
0
 internal void _Resize(VEEventArgs e)
 {
     if (OnResize != null) OnResize(this, e);
 }
Beispiel #31
0
 internal void _MouseWheel(VEEventArgs e)
 {
     if (OnMouseWheel != null) OnMouseWheel(this, e);
 }
Beispiel #32
0
 ///////// Keyboard Events
 internal void _KeyPress(VEEventArgs e)
 {
     if (OnKeyPress != null) OnKeyPress(this, e);
 }
Beispiel #33
0
 internal void _KeyUp(VEEventArgs e)
 {
     if (OnKeyUp != null) OnKeyUp(this, e);
 }
 void map_OnKeyPress(object sender, VEEventArgs e)
 {
     textBox1.Text += Convert.ToChar(e.KeyCode);
 }
Beispiel #35
0
 internal void _ChangeMapStyle(VEEventArgs e)
 {
     if (OnChangeMapStyle != null) OnChangeMapStyle(this, e);
 }
        // Virtual Earth Event Arguments Initializer...
        private VEEventArgs encodeVirtualEarthEventArgs(string eventName, string mapStyle, string sceneID, string sceneOrientation, string zoomLevel)
        {
            VEEventArgs args = new VEEventArgs();
            args.EventName = eventName;
            args.MapStyle = mapStyle;
            args.ZoomLevel = Convert.ToInt32(zoomLevel);

            return args;
        }
Beispiel #37
0
 internal void _StartZoom(VEEventArgs e)
 {
     if (OnStartZoom != null) OnStartZoom(this, e);
 }
Beispiel #38
0
 internal void _StartPan(VEEventArgs e)
 {
     if (OnStartPan != null) OnStartPan(this, e);
 }
Beispiel #39
0
 internal void _MouseOut(VEEventArgs e)
 {
     if (OnMouseOut != null) OnMouseOut(this, e);
 }
Beispiel #40
0
 internal void _ModeNotAvailable(VEEventArgs e)
 {
     if (OnModeNotAvailable != null) OnModeNotAvailable(this, e);
 }
Beispiel #41
0
 internal void _MouseOver(VEEventArgs e)
 {
     if (OnMouseOver != null) OnMouseOver(this, e);
 }
Beispiel #42
0
 internal void _EndZoom(VEEventArgs e)
 {
     if (OnEndZoom != null) OnEndZoom(this, e);
 }
Beispiel #43
0
 internal void _MouseUp(VEEventArgs e)
 {
     if (OnMouseUp != null) OnMouseUp(this, e);
 }
Beispiel #44
0
 internal void _MouseDown(VEEventArgs e)
 {
     if (OnMouseDown != null) OnMouseDown(this, e);
 }
Beispiel #45
0
 internal void _MouseMove(VEEventArgs e)
 {
     if (OnMouseMove != null) OnMouseMove(this, e);
 }
Beispiel #46
0
 internal void _ChangeView(VEEventArgs e)
 {
     if (OnChangeView != null) OnChangeView(this, e);
 }
Beispiel #47
0
 internal void _DoubleClick(VEEventArgs e)
 {
     if (OnDoubleClick != null) OnDoubleClick(this, e);
 }
        public void OnModeNotAvailable(string eventName, string mapStyle, string sceneID, string sceneOrientation, string zoomLevel)
        {
            VEEventArgs args = encodeVirtualEarthEventArgs(eventName, mapStyle, sceneID, sceneOrientation, zoomLevel);

            this.map._ModeNotAvailable(args);
        }
Beispiel #49
0
 ///////// Mouse Events
 internal void _Click(VEEventArgs e)
 {
     if (OnClick != null) OnClick(this, e);
 }
Beispiel #50
0
 // Firing events..., ignore one line typing please.
 ///////// Virtual Earth Events
 internal void _MapLoad(VEEventArgs e)
 {
     if (OnMapLoad != null) OnMapLoad(this, e);
 }
        // Mouse Event Arguments...
        private VEEventArgs encodeMouseEventArgs(string altKey, string ctrlKey, string elementID,
                                                string eventName, string leftMouseButton,
                                                string rightMouseButton, string mapStyle, string sceneID,
                                                string sceneOrientation, string shiftKey, string clientX,
                                                string clientY, string screenX, string screenY,
                                                string mapX, string mapY, string zoomLevel)
        {
            VEEventArgs args = new VEEventArgs();
            args.AltKey = Convert.ToBoolean(altKey);
            args.CtrlKey = Convert.ToBoolean(ctrlKey);
            args.ElementID = elementID; args.EventName = eventName;

            args.LeftMouseButton = Convert.ToBoolean(leftMouseButton);
            args.RightMouseButton = Convert.ToBoolean(rightMouseButton);
            args.MapStyle = mapStyle;
            args.ShiftKey = Convert.ToBoolean(shiftKey);
            args.ClientX = Convert.ToInt32(clientX); args.ClientY = Convert.ToInt32(clientY);
            args.ScreenX = Convert.ToInt32(screenX);
            args.ScreenY = Convert.ToInt32(screenY);
            args.MapX = Convert.ToInt32(mapX); args.MapY = Convert.ToInt32(mapY);
            args.ZoomLevel = Convert.ToInt32(zoomLevel);

            return args;
        }