protected virtual void UpdateLinks()
        {
            int  num1 = this.DataItem.Level - this.IndentCount - 1;
            int  num2 = Math.Abs(num1);
            bool flag = num1 > 0;

            for (; num2 > 0; --num2)
            {
                if (flag)
                {
                    GanttIndentCellElement indentCellElement = new GanttIndentCellElement(this.itemElement);
                    indentCellElement.Visibility        = ElementVisibility.Hidden;
                    indentCellElement.StretchVertically = true;
                    int num3 = (int)indentCellElement.SetDefaultValueOverride(RadElement.FitToSizeModeProperty, (object)RadFitToSizeMode.FitToParentBounds);
                    this.stackLayoutElement.Children.Insert(0, (RadElement)indentCellElement);
                    this.indents.Insert(0, indentCellElement);
                }
                else
                {
                    GanttIndentCellElement indent = this.indents[0];
                    this.stackLayoutElement.Children.Remove((RadElement)indent);
                    this.indents.Remove(indent);
                    indent.Dispose();
                }
            }
        }
 protected void DisposeIndetns()
 {
     for (int index = this.indents.Count - 1; index >= 0; --index)
     {
         GanttIndentCellElement indent = this.indents[index];
         if (!indent.IsDisposed)
         {
             this.stackLayoutElement.Children.Remove((RadElement)indent);
             this.indents.Remove(indent);
             indent.Dispose();
         }
     }
 }