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