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

Clear() protected method

protected Clear ( ControlCollection controls ) : void
controls System.Windows.Forms.ControlCollection
return void
        protected virtual void Clear( ControlCollection controls )
        {
            foreach (Control control in controls)
            {
                Clear( control.Controls );
                var lc = control as ATMLListControl;
                var tb = control as TextBox;
                var dg = control as DataGridView;
                var lv = control as ListView;
                if (lc != null)
                    lc.Clear();
                if (tb != null)
                    tb.Clear();
                if (dg != null)
                    dg.Rows.Clear();
                if (lv != null)
                    lv.Items.Clear();
            }
        }

Same methods

ATMLControl::Clear ( ) : void