Esempio n. 1
0
 private void OnMouseWheel(object sender, MouseEventArgs e)
 {
     if (e.Delta > 0)
     {
         view.ChangeView(GISMapActions.zoomin);
     }
     else if (e.Delta < 0)
     {
         view.ChangeView(GISMapActions.zoomout);
     }
     UpdateMap();
 }
Esempio n. 2
0
        public void MapButtonClick(object sender, EventArgs e)
        {
            GISMapActions action = GISMapActions.zoomin;

            if ((Button)sender == button3)
            {
                action = GISMapActions.zoomin;
            }
            else if ((Button)sender == button4)
            {
                action = GISMapActions.zoomout;
            }
            else if ((Button)sender == button5)
            {
                action = GISMapActions.moveup;
            }
            else if ((Button)sender == button6)
            {
                action = GISMapActions.movedown;
            }
            else if ((Button)sender == button7)
            {
                action = GISMapActions.moveleft;
            }
            else if ((Button)sender == button8)
            {
                action = GISMapActions.moveright;
            }
            view.ChangeView(action);
            UpdateMap();
        }