private void checkBox2_CheckedChanged(object sender, EventArgs e) { freeDraw = checkBox2.Checked; if (!freeDraw) { Subdivision.AddUserPath(); } }
private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { if (!freeDraw) { pictureBox1_MouseClick(sender, e); } else { Subdivision.AddUserPath(); skippedPoints = 0; currentPath = true; } }
public Form1() { InitializeComponent(); String[] tok = "$Rev: 251 $".Split(' '); Text += " (rev: " + tok[1] + ')'; Subdivision.AddUserPath(); Subdivision.ResetRndSeed(); int width = (int)numericXres.Value; int height = (int)numericYres.Value; Subdivision.GenerateDemoPoints(width, height); output = new Bitmap(width, height, System.Drawing.Imaging.PixelFormat.Format24bppRgb); doRedraw(); }