コード例 #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);
     }
 }
コード例 #13
0
        // 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);
     }
 }
コード例 #22
0
        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);
        }
コード例 #23
0
        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);
        }
コード例 #24
0
        // 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);
        }
コード例 #25
0
        // 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);
        }
コード例 #26
0
        // 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;
        }
コード例 #27
0
        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);
 }
コード例 #36
0
        // 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);
 }
コード例 #48
0
        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);
 }
コード例 #51
0
        // 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;
        }