private void ZRotationBar_Scroll(object sender, EventArgs e) { if (autoUpdate) { GraphicsPanel.Refresh(); } }
private void ScaleFactorBar_ValueChanged(object sender, EventArgs e) { if (autoUpdate) { GraphicsPanel.Refresh(); } }
private void HValue_ValueChanged(object sender, EventArgs e) { UpdateHyperboloid(); if (autoUpdate) { GraphicsPanel.Refresh(); } }
private void GraphicsPanel_Resize(object sender, EventArgs e) { graphics?.Dispose(); graphics = GraphicsPanel.CreateGraphics(); if (autoUpdate) { GraphicsPanel.Refresh(); } }
private void AutoUpdateBox_CheckedChanged(object sender, EventArgs e) { autoUpdate = AutoUpdateBox.Checked; if (autoUpdate) { DrawButton.Enabled = false; GraphicsPanel.Refresh(); } else { DrawButton.Enabled = true; } }
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(); } }
private void DrawButton_Click(object sender, EventArgs e) { GraphicsPanel.Refresh(); }