Exemplo n.º 1
0
        /// <summary>
        /// 戻るボタン押下
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void buttonGoBack_Click(object sender, EventArgs e)
        {
            --currentIndex;
            Tuple <Coordinate, Coordinate> tpl = coordinateList.GetTupleAtIndex(currentIndex + 1);

            heading = GpsCalculator.Heading(tpl.Item1, tpl.Item2);
            DrawStreetView(tpl.Item1);
            altitudeView.DrawLine(currentIndex);
            mapView.DrawCurrentPoint(currentIndex);
        }
Exemplo n.º 2
0
        /// <summary>
        /// マップビュークリック
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pictureBoxMap_MouseClick(object sender, MouseEventArgs e)
        {
            if (coordinateList == null)
            {
                return;
            }

            Point pt = new Point(e.X, e.Y);

            currentIndex = mapView.OnClickAndReturnIndex(pt);

            Tuple <Coordinate, Coordinate> tpl = coordinateList.GetTupleAtIndex(currentIndex);

            heading = GpsCalculator.Heading(tpl.Item1, tpl.Item2);
            DrawStreetView(tpl.Item1);
            altitudeView.DrawLine(currentIndex);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 高度ビュークリック
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void pictureBoxAltitude_Click(object sender, EventArgs e)
        {
            if (coordinateList == null)
            {
                return;
            }

            Point pt = pictureBoxAltitude.PointToClient(new Point(MousePosition.X, MousePosition.Y));

            currentIndex = altitudeView.OnClickAndReturnIndex(pt);

            Tuple <Coordinate, Coordinate> tpl = coordinateList.GetTupleAtIndex(currentIndex);

            heading = GpsCalculator.Heading(tpl.Item1, tpl.Item2);
            DrawStreetView(tpl.Item1);

            mapView.DrawCurrentPoint(currentIndex);
        }