private static void ApplyToControlsRec(Control.ControlCollection cc, Form fContext, MwaControlHandler fn) { if (cc == null) { Debug.Assert(false); return; } foreach (Control c in cc) { fn(c, fContext); ApplyToControlsRec(c.Controls, fContext, fn); } }
private static void ApplyToControlsRec(Control.ControlCollection cc, Form fContext, MwaControlHandler fn) { if(cc == null) { Debug.Assert(false); return; } foreach(Control c in cc) { fn(c, fContext); ApplyToControlsRec(c.Controls, fContext, fn); } }