+2005-09-29 Jonathan Chambers <jonathan.chambers@ansys.com>
+ * GridItem.cs: Fixed TODOs
+ * GridItemCollection.cs: Added ICollection interface
+
2005-09-30 Kornél Pál <kornelpal@hotmail.com>
* ImageList.cs: Resize icons when needed.
{
public abstract class GridItem
{
+
+ #region Fields
+ private bool expanded;
+ #endregion Fields
+
#region Constructors
- protected GridItem() {
+ protected GridItem()
+ {
+ expanded = false;
}
#endregion // Constructors
#region Public Instance Properties
- [MonoTODO]
- public virtual new bool Expandable
+ public virtual bool Expandable
{
get {
- throw new NotImplementedException();
+ return GridItems.Count > 1;
}
}
- [MonoTODO]
- public virtual new bool Expanded
+ public virtual bool Expanded
{
get {
- throw new NotImplementedException();
+ return expanded;
}
set {
- throw new NotImplementedException();
+ expanded = value;
}
}
namespace System.Windows.Forms
{
- public class GridItemCollection : IEnumerable
+ public class GridItemCollection : IEnumerable, ICollection
{
#region Local Variables
private System.Collections.SortedList list;
}
}
#endregion
+
+ #region ICollection Members
+
+ public bool IsSynchronized
+ {
+ get
+ {
+ return list.IsSynchronized;
+ }
+ }
+
+ public void CopyTo(Array array, int index)
+ {
+ list.CopyTo(array, index);
+ }
+
+ public object SyncRoot
+ {
+ get
+ {
+ return list.SyncRoot;
+ }
+ }
+
+ #endregion
}
}