public void ShowInContainer(IControlContainer viewContainer, GVControlAlign align) { ViewContainer = viewContainer; if (viewContainer != null) { viewContainer.AddControl(this, align); } }
public static TControl AddControlPassThrough <TControl>(this IControlContainer container, TControl control) where TControl : Control { container.AddControl(control); return(control); }