public TableLayout(Container container, Size size) : base(container != null ? container.Generator : Generator.Current, container, typeof(ITableLayout), false) { inner = (ITableLayout)Handler; this.Size = size; Initialize (); if (this.Container != null) this.Container.Layout = this; }
public TableLayout(Container container, Size size) : base(container != null ? container.Generator : Generator.Current, container, typeof(ITableLayout), false) { inner = (ITableLayout)Handler; this.Size = size; Initialize(); if (this.Container != null) { this.Container.Layout = this; } }
private void Initialize() { var body = _properties.TableBody; if (body == null) { throw new ArgumentNullException("TableBody"); } var style = _properties.TableStyle; if (style == null) { throw new ArgumentNullException("TableStyle"); } var table = new Table(style); var textRegistry = new TextAdapterRegistry(); TableLayout = new TableLayout(table, textRegistry); Decorator = GetComponent <ITableDecorator>(); }
public Table(ISelenium selenium, ITableLayout layout, string id) { _selenium = selenium; _layout = layout; _id = id; }