Пример #1
0
 internal void _StartZoom(VEEventArgs e)
 {
     if (OnStartZoom != null)
     {
         OnStartZoom(this, e);
     }
 }
Пример #2
0
 internal void _StartPan(VEEventArgs e)
 {
     if (OnStartPan != null)
     {
         OnStartPan(this, e);
     }
 }
Пример #3
0
 internal void _DoubleClick(VEEventArgs e)
 {
     if (OnDoubleClick != null)
     {
         OnDoubleClick(this, e);
     }
 }
Пример #4
0
 ///////// Mouse Events
 internal void _Click(VEEventArgs e)
 {
     if (OnClick != null)
     {
         OnClick(this, e);
     }
 }
Пример #5
0
 internal void _EndPan(VEEventArgs e)
 {
     if (OnEndPan != null)
     {
         OnEndPan(this, e);
     }
 }
Пример #6
0
 // Firing events..., ignore one line typing please.
 ///////// Virtual Earth Events
 internal void _MapLoad(VEEventArgs e)
 {
     if (OnMapLoad != null)
     {
         OnMapLoad(this, e);
     }
 }
Пример #7
0
 internal void _MouseOver(VEEventArgs e)
 {
     if (OnMouseOver != null)
     {
         OnMouseOver(this, e);
     }
 }
Пример #8
0
 internal void _InitMode(VEEventArgs e)
 {
     if (OnInitMode != null)
     {
         OnInitMode(this, e);
     }
 }
Пример #9
0
 internal void _MouseWheel(VEEventArgs e)
 {
     if (OnMouseWheel != null)
     {
         OnMouseWheel(this, e);
     }
 }
Пример #10
0
 internal void _MouseOut(VEEventArgs e)
 {
     if (OnMouseOut != null)
     {
         OnMouseOut(this, e);
     }
 }
Пример #11
0
 ///////// Keyboard Events
 internal void _KeyPress(VEEventArgs e)
 {
     if (OnKeyPress != null)
     {
         OnKeyPress(this, e);
     }
 }
Пример #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);
        }
Пример #14
0
 internal void _Resize(VEEventArgs e)
 {
     if (OnResize != null)
     {
         OnResize(this, e);
     }
 }
Пример #15
0
 internal void _MouseUp(VEEventArgs e)
 {
     if (OnMouseUp != null)
     {
         OnMouseUp(this, e);
     }
 }
Пример #16
0
 internal void _ModeNotAvailable(VEEventArgs e)
 {
     if (OnModeNotAvailable != null)
     {
         OnModeNotAvailable(this, e);
     }
 }
Пример #17
0
 internal void _MouseDown(VEEventArgs e)
 {
     if (OnMouseDown != null)
     {
         OnMouseDown(this, e);
     }
 }
Пример #18
0
 internal void _EndZoom(VEEventArgs e)
 {
     if (OnEndZoom != null)
     {
         OnEndZoom(this, e);
     }
 }
Пример #19
0
 internal void _MouseMove(VEEventArgs e)
 {
     if (OnMouseMove != null)
     {
         OnMouseMove(this, e);
     }
 }
Пример #20
0
 internal void _ChangeView(VEEventArgs e)
 {
     if (OnChangeView != null)
     {
         OnChangeView(this, e);
     }
 }
Пример #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);
        }
Пример #28
0
 internal void _EndPan(VEEventArgs e)
 {
     if (OnEndPan != null) OnEndPan(this, e);
 }
Пример #29
0
 internal void _InitMode(VEEventArgs e)
 {
     if (OnInitMode != null) OnInitMode(this, e);
 }
Пример #30
0
 internal void _Resize(VEEventArgs e)
 {
     if (OnResize != null) OnResize(this, e);
 }
Пример #31
0
 internal void _MouseWheel(VEEventArgs e)
 {
     if (OnMouseWheel != null) OnMouseWheel(this, e);
 }
Пример #32
0
 ///////// Keyboard Events
 internal void _KeyPress(VEEventArgs e)
 {
     if (OnKeyPress != null) OnKeyPress(this, e);
 }
Пример #33
0
 internal void _KeyUp(VEEventArgs e)
 {
     if (OnKeyUp != null) OnKeyUp(this, e);
 }
Пример #34
0
 void map_OnKeyPress(object sender, VEEventArgs e)
 {
     textBox1.Text += Convert.ToChar(e.KeyCode);
 }
Пример #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;
        }
Пример #37
0
 internal void _StartZoom(VEEventArgs e)
 {
     if (OnStartZoom != null) OnStartZoom(this, e);
 }
Пример #38
0
 internal void _StartPan(VEEventArgs e)
 {
     if (OnStartPan != null) OnStartPan(this, e);
 }
Пример #39
0
 internal void _MouseOut(VEEventArgs e)
 {
     if (OnMouseOut != null) OnMouseOut(this, e);
 }
Пример #40
0
 internal void _ModeNotAvailable(VEEventArgs e)
 {
     if (OnModeNotAvailable != null) OnModeNotAvailable(this, e);
 }
Пример #41
0
 internal void _MouseOver(VEEventArgs e)
 {
     if (OnMouseOver != null) OnMouseOver(this, e);
 }
Пример #42
0
 internal void _EndZoom(VEEventArgs e)
 {
     if (OnEndZoom != null) OnEndZoom(this, e);
 }
Пример #43
0
 internal void _MouseUp(VEEventArgs e)
 {
     if (OnMouseUp != null) OnMouseUp(this, e);
 }
Пример #44
0
 internal void _MouseDown(VEEventArgs e)
 {
     if (OnMouseDown != null) OnMouseDown(this, e);
 }
Пример #45
0
 internal void _MouseMove(VEEventArgs e)
 {
     if (OnMouseMove != null) OnMouseMove(this, e);
 }
Пример #46
0
 internal void _ChangeView(VEEventArgs e)
 {
     if (OnChangeView != null) OnChangeView(this, e);
 }
Пример #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);
        }
Пример #49
0
 ///////// Mouse Events
 internal void _Click(VEEventArgs e)
 {
     if (OnClick != null) OnClick(this, e);
 }
Пример #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;
        }