ViewGroup.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Xml.Serialization;
  6. namespace GenericDisplayCommand.Controls.V1
  7. {
  8. [Serializable]
  9. public class ViewGroup : View//, IEnumerable<View>, IList<View>
  10. {
  11. [XmlElement("LinearLayout", typeof(LinearLayout))]
  12. [XmlElement("VideoView", typeof(VideoView))]
  13. [XmlElement("TextView", typeof(TextView))]
  14. [XmlElement("ImageView", typeof(ImageView))]
  15. [XmlElement("NozzleView", typeof(NozzleView))]
  16. [XmlElement("PumpView", typeof(PumpView))]
  17. [XmlElement("GridView", typeof(GridView))]
  18. [XmlElement("ListView", typeof(ListView))]
  19. public List<View> Views = new List<View>();
  20. //public View this[int index] { get => views[index]; set => this.views[index] = value; }
  21. //public int Count => this.views.Count;
  22. //public bool IsReadOnly => false;
  23. //public void Add(View item)
  24. //{
  25. // this.views.Add(item);
  26. //}
  27. //public void Clear()
  28. //{
  29. // this.views.Clear();
  30. //}
  31. //public bool Contains(View item)
  32. //{
  33. // return this.views.Contains(item);
  34. //}
  35. //public void CopyTo(View[] array, int arrayIndex)
  36. //{
  37. // this.views.CopyTo(array, arrayIndex);
  38. //}
  39. //public IEnumerator<View> GetEnumerator()
  40. //{
  41. // return this.views.GetEnumerator();
  42. //}
  43. //public int IndexOf(View item)
  44. //{
  45. // return this.views.IndexOf(item);
  46. //}
  47. //public void Insert(int index, View item)
  48. //{
  49. // this.views.Insert(index, item);
  50. //}
  51. //public bool Remove(View item)
  52. //{
  53. // return this.views.Remove(item);
  54. //}
  55. //public void RemoveAt(int index)
  56. //{
  57. // this.views.RemoveAt(index);
  58. //}
  59. //IEnumerator IEnumerable.GetEnumerator()
  60. //{
  61. // return this.views.GetEnumerator();
  62. //}
  63. }
  64. }