public void AddRowLabel(RowLabel trl) { RowLabels.Add(trl); Controls.Add(trl); trl.VisibleChanged += LabelVisibleChangedHandler; DoLayout(); }
public Row(RowLabel trl) { RowLabel = trl; ChildRows = new List <Row>(); trl.ActiveIndicator = () => !IsEmpty; trl.ChildActiveIndicator = IsTreeActive; }
public void RemoveRowLabel(RowLabel trl) { RowLabels.Remove(trl); Controls.Remove(trl); trl.VisibleChanged -= LabelVisibleChangedHandler; DoLayout(); }
public void AddRowLabel(RowLabel trl) { RowLabels.Add(trl); Controls.Add(trl); trl.VisibleChanged += LabelVisibleChangedHandler; DoLayout(); }
internal void InvalidateRowLabel() { if (Visible) { RowLabel.Invalidate(); } ParentRow?.InvalidateRowLabel(); }
public void ToggleTree(bool open = true) { TreeOpen = open; foreach (Row row in ChildRows) { row.ToggleTree(open); } RowLabel.Invalidate(); _RowToggled(); _RowChanged(); }
// adds a new, empty row with the given label, as a child of the (optional) given parent public Row AddRow(RowLabel label, Row parent = null, int height = 50) { Row row = new Row(label); row.Height = height; if (parent != null) { parent.AddChildRow(row); } AddRowToControls(row, row.RowLabel); return(row); }
public void AddRowLabel(RowLabel trl) { if (this.InvokeRequired) { this.Invoke(new AddRowLabelDelegate(AddRowLabel), trl); } else { RowLabels.Add(trl); // Addint a control is VERY slow! Controls.Add(trl); trl.VisibleChanged += LabelVisibleChangedHandler; // Don't call DoLayout. It'll get called after all the rows have been added! //DoLayout(); } }
public void AddRowLabel(RowLabel trl) { if (this.InvokeRequired) { this.Invoke(new AddRowLabelDelegate(AddRowLabel), trl); } else { RowLabels.Add(trl); // Addint a control is VERY slow! Controls.Add(trl); trl.VisibleChanged += LabelVisibleChangedHandler; // Don't call DoLayout. It'll get called after all the rows have been added! //DoLayout(); } }
private void AddRowToControls(Row row, RowLabel label) { grid.AddRow(row); timelineRowList.AddRowLabel(label); }
public Row(RowLabel trl) { RowLabel = trl; ChildRows = new List <Row>(); }
public void RemoveRowLabel(RowLabel trl) { RowLabels.Remove(trl); Controls.Remove(trl); trl.VisibleChanged -= LabelVisibleChangedHandler; DoLayout(); }