private void pictureBox2_Click(object sender, EventArgs e) { Program.ChoosedPlace = "Обь"; GeneralForms form = new GeneralForms("Обь"); form.Show(); }
private void open(object sender, EventArgs e) { PictureBox pb1 = (PictureBox)sender; GeneralForms form = new GeneralForms(pb1.Tag.ToString(), pb1.AccessibleDescription); form.Show(); }