private void trackBar1_Scroll(object sender, EventArgs e) { Subdivision.SetParam("coef", (double)trackBar1.Value / (double)trackBar1.Maximum); doRedraw(); }
private void button2_Click(object sender, EventArgs e) { Subdivision.CloseUserPoints(); doRedraw(); }
private void pictureBox1_MouseClick(object sender, MouseEventArgs e) { Subdivision.AddUserPoint(e.X, e.Y); doRedraw(); }
private void checkBox1_CheckedChanged(object sender, EventArgs e) { Subdivision.SetParam("polygon", checkBox1.Checked); doRedraw(); }
private void trackBar3_Scroll(object sender, EventArgs e) { Subdivision.SetParam("width", (double)trackBar3.Value); doRedraw(); }
private void trackBar2_Scroll(object sender, EventArgs e) { Subdivision.SetParam("niter", trackBar2.Value); doRedraw(); }