Beispiel #1
0
 public void AddRowLabel(RowLabel trl)
 {
     RowLabels.Add(trl);
     Controls.Add(trl);
     trl.VisibleChanged += LabelVisibleChangedHandler;
     DoLayout();
 }
Beispiel #2
0
 public Row(RowLabel trl)
 {
     RowLabel                 = trl;
     ChildRows                = new List <Row>();
     trl.ActiveIndicator      = () => !IsEmpty;
     trl.ChildActiveIndicator = IsTreeActive;
 }
Beispiel #3
0
 public void RemoveRowLabel(RowLabel trl)
 {
     RowLabels.Remove(trl);
     Controls.Remove(trl);
     trl.VisibleChanged -= LabelVisibleChangedHandler;
     DoLayout();
 }
Beispiel #4
0
 public void AddRowLabel(RowLabel trl)
 {
     RowLabels.Add(trl);
     Controls.Add(trl);
     trl.VisibleChanged += LabelVisibleChangedHandler;
     DoLayout();
 }
Beispiel #5
0
 internal void InvalidateRowLabel()
 {
     if (Visible)
     {
         RowLabel.Invalidate();
     }
     ParentRow?.InvalidateRowLabel();
 }
Beispiel #6
0
 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);
        }
Beispiel #8
0
        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();
            }
        }
Beispiel #9
0
        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();
            }
        }
Beispiel #10
0
 private void AddRowToControls(Row row, RowLabel label)
 {
     grid.AddRow(row);
     timelineRowList.AddRowLabel(label);
 }
Beispiel #11
0
 public Row(RowLabel trl)
 {
     RowLabel  = trl;
     ChildRows = new List <Row>();
 }
Beispiel #12
0
 public void RemoveRowLabel(RowLabel trl)
 {
     RowLabels.Remove(trl);
     Controls.Remove(trl);
     trl.VisibleChanged -= LabelVisibleChangedHandler;
     DoLayout();
 }