Пример #1
0
 private void Map_MouseDown(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         cmMap.Show((Control)sender, new Point(e.X, e.Y));
     }
     else
     {
         Map.Center = Map.ControlToMap(new Point(e.X, e.Y));
     }
 }
Пример #2
0
        private void Map_MouseDown(object sender, MouseEventArgs e)
        {
            Map.Center = Map.ControlToMap(new Point(e.X, e.Y));

            m_Updating = true;

            m_CurrentLocation.X = (short)Map.Center.X;
            m_CurrentLocation.Y = (short)Map.Center.Y;
            m_CurrentLocation.Z = (sbyte)Map.GetMapHeight();

            nX.Value = m_CurrentLocation.X;
            nY.Value = m_CurrentLocation.Y;
            nZ.Value = m_CurrentLocation.Z;

            m_Updating = false;
        }
Пример #3
0
 private void m_Map_MouseDown(object sender, MouseEventArgs e)
 {
     m_Map.Center = m_Map.ControlToMap(new Point(e.X, e.Y));
 }