private void function1_Click(object sender, EventArgs e) { imagbox3.Visible = false; points = logic.pointDetector(sourceImage, type); imagbox1.Image = logic.pointDraw(sourceImage, points); imagbox2.Image = logic.pDrawer(logic.fPoints(points, sourceImage, secondImage), secondImage); }