示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }