private void navigationPicBox_Click(object sender, EventArgs e) { string objective = "Navigation"; var objChoose = new ObjectiveChoser(objective); objChoose.ShowDialog(this); //Ждём закрытия ObjectiveChoser if (picPasser == null) { } else { navigationPicBox.Image = picPasser; navigationPicBox.Update(); picPasser = null; } }
private void pictureBox1_Click(object sender, EventArgs e) { string objective = "Assault"; var objChoose = new ObjectiveChoser(objective); objChoose.ShowDialog(this); //Ждём закрытия ObjectiveChoser if (picPasser == null) { } else { assaultPicBox.Image = picPasser; assaultPicBox.Update(); picPasser = null; } }