private void Timer_Tick(object sender, EventArgs e)
        {
            LB_Debug.Visible = MainForm.IsDebugInformationShown;
            LB_Debug.Text    = Program.ToString() +
                               $"MouseX: {debugMouseMove.X}\n" +
                               $"MouseY: {debugMouseMove.Y}";


            if (Program.Zoom != Program.ZoomPre)
            {
                isZooming = true;
                Program.UpdateScale();
                GL_CoordinateSystem.Refresh();
            }
            else if (isZooming)
            {
                if (Program.ZoomXGoto != Program.ZoomXTemp || Program.ZoomYGoto != Program.ZoomYTemp)
                {
                    Program.UpdateScale();
                    GL_CoordinateSystem.Refresh();
                }
                else
                {
                    isZooming = false;
                    GL_CoordinateSystem.Refresh();
                    coordUpdate.X = (int)Program.X;
                    coordUpdate.Y = (int)Program.Y;
                }
            }
        }
 public void UpdateForm()
 {
     Program.IsPointsVisible    = BN_TogglePoints.Checked;
     Program.IsShapesVisible    = BN_ToggleShapes.Checked;
     Program.IsFunctionsVisible = BN_ToggleGraphs.Checked;
     Program.IsAxisVisible      = BN_ToggleAxis.Checked;
     Program.IsGridVisible      = BN_ToggleGrid.Checked;
     Program.IsTextsVisible     = BN_ToggleTexts.Checked;
     GL_CoordinateSystem.Refresh();
 }
 private void GL_CoordinateSystem_MouseUp(object sender, MouseEventArgs e)
 {
     if (isDown)
     {
         coordUpdate.X += mouseStart.X - mouseMove.X;
         coordUpdate.Y -= mouseMove.Y - mouseStart.Y;
         isDown         = false;
         GL_CoordinateSystem.Refresh();
     }
 }
        private void GL_CoordinateSystem_MouseMove(object sender, MouseEventArgs e)
        {
            debugMouseMove = e.Location;

            if (isDown)
            {
                mouseMove = e.Location;
                Program.X = coordUpdate.X + mouseStart.X - mouseMove.X;
                Program.Y = coordUpdate.Y - mouseMove.Y + mouseStart.Y;
                GL_CoordinateSystem.Refresh();
            }
        }