private void pictureBox_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { drawer.prev = e.Location; drawer.started = true; if (filling) { drawer.fill(e.Location); drawer.g = Graphics.FromImage(drawer.btm); pictureBox.Image = drawer.btm; } } }
private void pictureBox1_MouseDown(object sender, MouseEventArgs e) { drawer.ok = true; drawer.prev = e.Location; if (drawer.shape == Drawer.Shape.Fill) { drawer.fill(e.Location); } if (e.Location != trackBar1.Location && trackBar1.Visible) { trackBar1.Hide(); } }