Example #1
0
 private void ZRotationBar_Scroll(object sender, EventArgs e)
 {
     if (autoUpdate)
     {
         GraphicsPanel.Refresh();
     }
 }
Example #2
0
 private void ScaleFactorBar_ValueChanged(object sender, EventArgs e)
 {
     if (autoUpdate)
     {
         GraphicsPanel.Refresh();
     }
 }
Example #3
0
        private void HValue_ValueChanged(object sender, EventArgs e)
        {
            UpdateHyperboloid();

            if (autoUpdate)
            {
                GraphicsPanel.Refresh();
            }
        }
Example #4
0
        private void GraphicsPanel_Resize(object sender, EventArgs e)
        {
            graphics?.Dispose();
            graphics = GraphicsPanel.CreateGraphics();

            if (autoUpdate)
            {
                GraphicsPanel.Refresh();
            }
        }
Example #5
0
        private void AutoUpdateBox_CheckedChanged(object sender, EventArgs e)
        {
            autoUpdate = AutoUpdateBox.Checked;

            if (autoUpdate)
            {
                DrawButton.Enabled = false;
                GraphicsPanel.Refresh();
            }
            else
            {
                DrawButton.Enabled = true;
            }
        }
Example #6
0
        private void SmoothBox_CheckedChanged(object sender, EventArgs e)
        {
            if (graphics is null)
            {
                return;
            }

            if (SmoothBox.Checked)
            {
                graphics.SmoothingMode = SmoothingMode.AntiAlias;
            }
            else
            {
                graphics.SmoothingMode = SmoothingMode.None;
            }

            if (autoUpdate)
            {
                GraphicsPanel.Refresh();
            }
        }
Example #7
0
 private void DrawButton_Click(object sender, EventArgs e)
 {
     GraphicsPanel.Refresh();
 }