Beispiel #1
0
 public static List <BaseInputView> GetAllQuestions(this InputFormView form)
 {
     return(form.Rows.Aggregate(new List <BaseInputView>(), (list, next) =>
     {
         return next.GetAllQuestions(list);
     }));
 }
Beispiel #2
0
 public static void UpdateAllQuestions(this InputFormView form, Dictionary <int, object> values)
 {
     foreach (InputRowView row in form.Rows)
     {
         row.UpdateAllQuestions(values);
     }
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj.GetType() != typeof(InputFormView))
            {
                return(false);
            }

            InputFormView other = (InputFormView)obj;

            return(other.Title == this.Title &&
                   other.Icon == this.Icon);
        }