public override void Escape() { if (m_Window != null) { //DrawConnection(); m_Window.Close(); m_Window.Dispose(); m_Window = null; } base.Escape(); }
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); }
public override void Escape() { if (m_Window!=null) { //DrawConnection(); m_Window.Close(); m_Window.Dispose(); m_Window = null; } base.Escape(); }
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; }