Exemplo n.º 1
0
        public override void Escape()
        {
            if (m_Window != null)
            {
                //DrawConnection();
                m_Window.Close();
                m_Window.Dispose();
                m_Window = null;
            }

            base.Escape();
        }
Exemplo n.º 2
0
        public override bool Start()
        {
            m_Window               = new MagnifyForm(this, m_Scale);
            m_Window.Size          = new Size(this.MapControl.Width / 5, this.MapControl.Height / 5);
            m_Window.StartPosition = FormStartPosition.Manual;
            Point screenPos = Cursor.Position;

            AdjustLocation(ref screenPos);
            m_Window.Location = screenPos;
            m_Window.Visible  = true;
            this.MapControl.SetCursor(MapResources.HollowSquareCursor);
            m_IsStarted = true;
            return(true);
        }
Exemplo n.º 3
0
        public override void Escape()
        {
            if (m_Window!=null)
            {
                //DrawConnection();
                m_Window.Close();
                m_Window.Dispose();
                m_Window = null;
            }

            base.Escape();
        }
Exemplo n.º 4
0
 public override bool Start()
 {
     m_Window = new MagnifyForm(this, m_Scale);
     m_Window.Size = new Size(this.MapControl.Width/5, this.MapControl.Height/5);
     m_Window.StartPosition = FormStartPosition.Manual;
     Point screenPos = Cursor.Position;
     AdjustLocation(ref screenPos);
     m_Window.Location = screenPos;
     m_Window.Visible = true;
     this.MapControl.SetCursor(MapResources.HollowSquareCursor);
     m_IsStarted = true;
     return true;
 }