protected abstract void AddControlToForm(IControlChilli cntrl);
protected override void AddControlToForm(IControlChilli cntrl) { Gizmox.WebGUI.Forms.Form frm = new Gizmox.WebGUI.Forms.Form(); frm.Controls.Add((Gizmox.WebGUI.Forms.Control)cntrl); }
/// <summary> /// Removes the specified control from the collection /// </summary> /// <param name="value">The control to remove</param> public void Remove(IControlChilli value) { List.Remove(value); }
/// <summary> /// Indicates whether the collection contains the specified control /// </summary> /// <param name="value">The control to search for</param> /// <returns>Returns a boolean indicating whether that control is /// found in the collection</returns> public bool Contains(IControlChilli value) { return(List.Contains(value)); }
/// <summary> /// Insert a control at a specified index position /// </summary> /// <param name="index">The index position at which to insert</param> /// <param name="value">The control to insert</param> public void Insert(int index, IControlChilli value) { List.Insert(index, value); }
/// <summary> /// Provides the index position of the control specified /// </summary> /// <param name="value">The control to search for</param> /// <returns>Returns the index position if found, or -1</returns> public int IndexOf(IControlChilli value) { return(List.IndexOf(value)); }
/// <summary> /// Adds a control to the collection /// </summary> /// <param name="value">The control to add</param> /// <returns>Returns the position at which the control was added</returns> public int Add(IControlChilli value) { return(List.Add(value)); }