2 using System
.Collections
;
4 namespace Mainsoft
.Drawing
.Imaging
7 /// Summary description for PlainImageCollection.
9 public class PlainImageCollection
: ICollection
, IEnumerable
11 ArrayList collection
= new ArrayList();
14 public PlainImageCollection()
17 // TODO: Add constructor logic here
21 #region ICollection members
23 public bool IsSynchronized
{
25 return collection
.IsSynchronized
;
31 return collection
.Count
;
35 public void CopyTo(Array array
, int index
) {
36 collection
.CopyTo(array
, index
);
39 public object SyncRoot
{
41 return collection
.SyncRoot
;
47 #region IEnumerable members
49 public IEnumerator
GetEnumerator() {
50 return collection
.GetEnumerator();
55 #region Collection members
57 public int Add(PlainImage plainImage
) {
58 return collection
.Add( plainImage
);
65 public bool Contains(PlainImage plainImage
) {
66 return collection
.Contains(plainImage
);
69 public int IndexOf(PlainImage plainImage
) {
70 return collection
.IndexOf( plainImage
);
73 public void Insert(int index
, PlainImage
value) {
74 collection
.Insert( index
, value );
77 public void Remove(PlainImage
value) {
78 collection
.Remove( value );
81 public void RemoveAt(int index
) {
82 collection
.RemoveAt( index
);
85 public PlainImage
this[int index
] {
86 get { return (PlainImage) collection[ index ]; }
89 public PlainImage CurrentImage
{
90 get { return (PlainImage) collection[ _position ]; }
91 set { collection[ _position ] = value; }
94 public int CurrentImageIndex
{
95 get { return _position; }
96 set { _position = value; }