private void CreateTopLeftButton() { if (topLeftButton == null) { topLeftButton = new TableColumnButton(ColumnsStyle); topLeftButton.Size = new Size(40, 20); Controls.Add(topLeftButton); } }
private void CreateTopLeftButton() { if (topLeftButton == null) { topLeftButton = new TableColumnButton(this, ColumnsStyle); topLeftButton.Name = "topLeftButton"; topLeftButton.Size = new Size(40, 20); Controls.Add(topLeftButton); } topLeftButton.Visible = !rowHeadersHidden && !columnHeadersHidden; }
internal void UpdateColumn(TableColumn column) { CreateTopLeftButton(); if (column.control == null) { var cButton = new TableColumnButton(this, ColumnsStyle); cButton.column = column; cButton.EnableHorizontalResizing = true; cButton.Name = column.Name; cButton.table = this; cButton.Text = column.HeaderText; column.control = cButton; Controls.Add(cButton); } column.control.Visible = !columnHeadersHidden; }
internal void UpdateColumn(TableColumn column) { CreateTopLeftButton(); if (column.control == null) { var cButton = new TableColumnButton(ColumnsStyle); cButton.column = column; cButton.EnableHorizontalResizing = true; cButton.table = this; cButton.Text = column.HeaderText; column.control = cButton; Controls.Add(cButton); } AlignColumns(); UpdateRows(); }
private void CreateTopLeftButton() { if (rowHeadersHidden) { if (topLeftButton != null && topLeftButton.IsDisposed == false) { topLeftButton.Dispose(); topLeftButton = null; } return; } if (topLeftButton == null) { topLeftButton = new TableColumnButton(this, ColumnsStyle); topLeftButton.Name = "topLeftButton"; topLeftButton.Size = new Size(topLeftButtonWidth, 20); Controls.Add(topLeftButton); } topLeftButton.Visible = !rowHeadersHidden && !columnHeadersHidden; }