Exemplo n.º 1
0
 internal IEnumerable AllFields(bool flat = false)
 {
     System.Diagnostics.Debug.WriteLine("Enumerating Form Fields");
     // var list = new ArrayList();
     if (flat)
     {
         foreach (var item in Groups)
         {
             // list.Add(item);
             yield return(item);
         }
     }
     else
     {
         foreach (object item in Groups.GroupBy(x => AtomForm.GetCategory(x)))
         {
             // list.Add(item);
             yield return(item);
         }
     }
     //foreach (var item in list)
     //{
     //    System.Diagnostics.Debug.WriteLine(item.GetType().FullName);
     //}
     // return list;
 }
 internal IEnumerable AllFields(bool flat = false)
 {
     System.Diagnostics.Debug.WriteLine("Enumerating Form Fields");
     if (flat)
     {
         foreach (var item in Groups)
         {
             yield return(item);
         }
     }
     else
     {
         foreach (object item in Groups.GroupBy(x => AtomForm.GetCategory(x)))
         {
             yield return(item);
         }
     }
 }