Beispiel #1
0
 /// <summary>
 /// Cleans up all infobars on the selected control.
 /// </summary>
 /// <param name="parent">The parent.</param>
 /// <remarks>Documented by Dev02, 2008-05-21</remarks>
 public static void CleanUpInfobars(Control parent)
 {
     if (parent != null)
     {
         foreach (Control control in parent.Controls)
         {
             if (control is InfoBar)
             {
                 InfoBar bar = (InfoBar)control;
                 bar.ParentControlsLayoutSuspended = false;
                 bar.Visible = false;
                 bar.Dispose();
             }
         }
     }
 }