public void Registration(Hold hold) { if (choiced != (int)Choice.None) { bool[] onHolds = hold.GetOnHold(); if (onHolds[choiced]) { hold.SetOnHold(choiced, false); curFocusHolds[choiced] = null; } else { hold.SetOnHold(choiced, true); if (curFocusHolds[choiced] != null) { curFocusHolds[choiced].SetOnHold(choiced, false); } curFocusHolds[choiced] = hold; } } }