private void nPeople_ValueChanged(object sender, EventArgs e) { NumericUpDown nud; nud = (NumericUpDown)sender; map.ChangePeople(Convert.ToInt32(nud.Value)); }