CSPspEmu.Gui.Winforms.PspDisplayForm.GetAll C# (CSharp) Method

GetAll() public method

public GetAll ( Control control, Type type ) : IEnumerable
control System.Windows.Forms.Control
type System.Type
return IEnumerable
        public IEnumerable<Control> GetAll(Control control, Type type)
        {
            var controls = control.Controls.Cast<Control>();

            return controls.SelectMany(ctrl => GetAll(ctrl, type)).Concat(controls).Where(c => c.GetType() == type);
        }
PspDisplayForm