Esempio n. 1
0
 private void SuspendRedraw(ItemTemplate it)
 {
     if ((it != null) && (it != this.m_Owner))
     {
         throw new ArgumentException("Cell is already part of other ItemTemplate");
     }
     if (this.m_Owner.Parent != null)
     {
         this.m_Owner.Parent.SuspendRedraw();
     }
 }
Esempio n. 2
0
 public virtual ItemTemplate Clone()
 {
     ItemTemplate template = new ItemTemplate();
     foreach (Cell cell in this.m_CellTemplates)
     {
         template.CellTemplates.Add(cell.Clone());
     }
     template.BackColor = this.BackColor;
     template.ForeColor = this.ForeColor;
     template.GradientBackColor = new GradientColor(this.GradientBackColor.StartColor, this.GradientBackColor.MiddleColor1, this.GradientBackColor.MiddleColor2, this.GradientBackColor.EndColor, this.GradientBackColor.FillDirection);
     template.GradientBackColor.PropertyChanged += new EventHandler(this.m_gradientBackColor_PropertyChanged);
     template.UseGradient = this.UseGradient;
     template.Height = this.Height;
     template.Name = this.Name;
     return template;
 }
Esempio n. 3
0
 public CellCollection(ItemTemplate it)
 {
     this.m_Owner = it;
 }
Esempio n. 4
0
 private ItemTemplate ReadItemTemplate(XmlReader reader)
 {
     ItemTemplate o = new ItemTemplate();
     if (this._designTimeCallback != null)
     {
         this._designTimeCallback(o, null);
     }
     o.Name = reader["Name"];
     try
     {
         string str = reader["Height"];
         if (str != null)
         {
             o.Height = Convert.ToInt32(str);
         }
     }
     catch
     {
     }
     if (!reader.IsEmptyElement)
     {
     Label_011E:
         if (!reader.Read())
         {
             return o;
         }
         try
         {
             string str2;
             if (((str2 = reader.Name) == null) || (str2 == ""))
             {
                 goto Label_011E;
             }
             if (!(str2 == "ItemTemplate"))
             {
                 if (str2 == "Cell")
                 {
                     goto Label_00A6;
                 }
                 if (str2 == "Property")
                 {
                     goto Label_00BB;
                 }
                 goto Label_0101;
             }
             return o;
         Label_00A6:
             o.CellTemplates.Add(this.ReadCell(reader));
             goto Label_011E;
         Label_00BB:
             if ((reader.HasAttributes && (reader["Name"] != null)) && (reader["Value"] != null))
             {
                 this.m_conversion.SetProperty(o, reader["Name"], reader["Value"]);
             }
             goto Label_011E;
         Label_0101:
             this.m_conversion.SetProperty(o, reader.Name, reader.ReadString());
         }
         catch
         {
         }
         goto Label_011E;
     }
     return o;
 }
Esempio n. 5
0
 internal void ResetCachedBounds(ItemTemplate it)
 {
     foreach (ListItem item in base.List)
     {
         if ((it == null) || (item.Template == it))
         {
             item.ResetCachedBounds();
         }
     }
 }
Esempio n. 6
0
 public void Insert(int index, ItemTemplate value)
 {
     base.List.Insert(index, value);
 }
Esempio n. 7
0
 public int IndexOf(ItemTemplate value)
 {
     return(base.List.IndexOf(value));
 }
Esempio n. 8
0
 public bool Contains(ItemTemplate value)
 {
     return(base.List.Contains(value));
 }
Esempio n. 9
0
 public int Add(ItemTemplate value)
 {
     return(base.List.Add(value));
 }
Esempio n. 10
0
 public void Remove(ItemTemplate value)
 {
     base.List.Remove(value);
 }