public static void InitializeControl(
     ICustomControlWithText controlWithTextBase,
     DocumentContainer container,
     ErrorProvider provider)
 {
     controlWithTextBase.DocumentLoaded = true;
     controlWithTextBase.Initialize(container, provider);
 }
 public void Visit(ICustomControlWithText control)
 {
     control.DocumentLoaded = true;
     control.Initialize(container, provider);
 }