public void FocusLast() { for (int i = widgets.Count; i > 0; ){ i--; Widget w = (Widget) widgets [i]; if (w.CanFocus){ SetFocus (w); return; } } }