static void Main(string[] args) { Init(); FactoryInformation information = new FactoryInformation(); information.PageFields = pageFields; information.Blocks = pageBlocks; information.Page = pageModel; information.Permissions = pagePermissions; information.PropertieModels = APIProperties; var pageGenerator = new PageGenerator(information); pageGenerator.GeneratePage <EditPageFactory>("EditPage"); pageGenerator.GeneratePage <EditPageFieldsFactory>("EditPageFields"); pageGenerator.GeneratePage <ListPageFactory>("ListPage"); pageGenerator.GenerateTestPage(APIProperties); pageGenerator.GenerateTestPermissionsPage(); pageGenerator.GenerateAPIModelPage(APIProperties); MessageBox.Show("Process completed with success. Check output json folder to find the files.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); }
public PageGenerator(FactoryInformation information) { this.Informations = information; }