protected void ExtractValues(IOrderedDictionary dictionary, Control container) { IBindableControl control = container as IBindableControl; if (control != null) { control.ExtractValues(dictionary); } foreach (Control c in container.Controls) { ExtractValues(dictionary, c); } }
internal static void ExtractValuesFromBindableControls(IOrderedDictionary dictionary, Control container) { IBindableControl bindableControl = container as IBindableControl; if (bindableControl != null) { bindableControl.ExtractValues(dictionary); } foreach (Control childControl in container.Controls) { ExtractValuesFromBindableControls(dictionary, childControl); } }