Example #1
0
File: Form.cs Project: jannunzi/dev
        public static Form getRandomForm(string name, int rowCount, int colCount)
        {
            Form form = new Form(name);

            List<Field> fields = new List<Field>(colCount);
            for (int f = 0; f < colCount; f++)
            {
                Field field = Field.getRandomField(null);
                fields.Add(field);
            }
            form.fields = fields;

            List<Row> rows = new List<Row>(rowCount);
            for (int r = 0; r < rowCount; r++)
            {
                Row row = Row.getRandomRow(colCount);
                rows.Add(row);
            }
            form.data = rows;
            return form;
        }
Example #2
0
 public void addForm(Form form)
 {
     forms.Add(form);
 }