ATMLCommonLibrary.controls.ATMLControl.InitControl C# (CSharp) Method

InitControl() private method

private InitControl ( Control ctrl ) : void
ctrl System.Windows.Forms.Control
return void
        private void InitControl( Control ctrl )
        {
            if (ctrl is TextBox)
            {
                SetTextBoxDelegate( ctrl );
            }
            else if (ctrl is ATMLControl)
            {
                ( (ATMLControl) ctrl ).InitControls();
            }
            else
            {
                foreach (Control ctrl1 in ctrl.Controls)
                {
                    InitControl( ctrl1 );
                }
            }
        }