public ViewableFileCollection(SymanticForm form) { this.EncapsulatedForm = form; //pre-populate all the fields, along with any existing records FormfieldCollection allFields = new FormfieldCollection().Where(Formfield.Columns.Formid, this.EncapsulatedForm.Form.Id).Load(); ///get the related fields this.relatedFields = new List <SymanticField>(); for (int i = 0; i < allFields.Count; i++) { EditableField field = new EditableField(allFields[i]); this.relatedFields.Add(field); } /// Sort the fields in field order this.relatedFields = this.relatedFields.OrderBy(field => field.Metadata.FieldOrder).ToList(); }
public SymanticFile(Formfile formFile, SymanticForm form) { this.SymanticForm = form; this.FormFile = formFile; }