12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Text;
- using System.Xml.Serialization;
- namespace GenericDisplayCommand.Controls.V1
- {
- [Serializable]
- public class ViewGroup : View//, IEnumerable<View>, IList<View>
- {
- [XmlElement("LinearLayout", typeof(LinearLayout))]
- [XmlElement("VideoView", typeof(VideoView))]
- [XmlElement("TextView", typeof(TextView))]
- [XmlElement("ImageView", typeof(ImageView))]
- [XmlElement("NozzleView", typeof(NozzleView))]
- [XmlElement("PumpView", typeof(PumpView))]
- [XmlElement("GridView", typeof(GridView))]
- [XmlElement("ListView", typeof(ListView))]
- public List<View> Views = new List<View>();
- //public View this[int index] { get => views[index]; set => this.views[index] = value; }
- //public int Count => this.views.Count;
- //public bool IsReadOnly => false;
- //public void Add(View item)
- //{
- // this.views.Add(item);
- //}
- //public void Clear()
- //{
- // this.views.Clear();
- //}
- //public bool Contains(View item)
- //{
- // return this.views.Contains(item);
- //}
- //public void CopyTo(View[] array, int arrayIndex)
- //{
- // this.views.CopyTo(array, arrayIndex);
- //}
- //public IEnumerator<View> GetEnumerator()
- //{
- // return this.views.GetEnumerator();
- //}
- //public int IndexOf(View item)
- //{
- // return this.views.IndexOf(item);
- //}
- //public void Insert(int index, View item)
- //{
- // this.views.Insert(index, item);
- //}
- //public bool Remove(View item)
- //{
- // return this.views.Remove(item);
- //}
- //public void RemoveAt(int index)
- //{
- // this.views.RemoveAt(index);
- //}
- //IEnumerator IEnumerable.GetEnumerator()
- //{
- // return this.views.GetEnumerator();
- //}
- }
- }
|