Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Form1()
- {
- InitializeComponent();
- tbl = new MetaFieldTable(dataGridView1);
- }
- private MetaFieldTable tbl;
- private void button1_Click(object sender, System.EventArgs e)
- {
- Random rnd = new Random();
- int amount = rnd.Next(30);
- MetaField[] metaFields = new MetaField[amount];
- IndexField[] indexFields = new IndexField[amount];
- BatchField[] batchFields = new BatchField[amount];
- for (int i = 0; i < amount; i++)
- {
- string name = $"Field {i}";
- metaFields[i] = new MetaField(i, $"Meta{name}");
- indexFields[i] = new IndexField(i, $"Index{name}");
- batchFields[i] = new BatchField(i, $"Batch{name}");
- }
- tbl.CreateMetaFieldTable(metaFields, new ReleaseSetupData(indexFields, batchFields));
- }
Add Comment
Please, Sign In to add comment