SwitchSection FindSection (SwitchLabel label) { foreach (SwitchSection ss in Sections){ foreach (SwitchLabel sl in ss.Labels){ if (label == sl) return ss; } } return null; }