private void TopAdd_Click(object sender, EventArgs e) { topForm addForm = new topForm(picture.Size.Width, picture.Size.Height); if (addForm.ShowDialog() == DialogResult.OK) { graph.Add(addForm.point); } }