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();
}
}