BKI_DichVuMatDat.FormatControl.GetAllControl C# (CSharp) Method

GetAllControl() private static method

private static GetAllControl ( Control c, List outList ) : void
c System.Windows.Forms.Control
outList List
return void
        private static void GetAllControl(Control c, List<Control> outList)
        {
            foreach (Control control in c.Controls)
            {
                if (control.GetType() == typeof(SimpleButton))
                {
                    outList.Add(control);
                }
                else
                {
                    GetAllControl(control, outList);
                }
            }
        }