//Initialilise the parent MDI and setup the forms with their properties //Add the forms into a list. public mainform() { InitializeComponent(); Forms = new List <Form>(); index indexForm = new index(this); indexForm.MdiParent = this; indexForm.Dock = DockStyle.Fill; region regionForm = new region(this); regionForm.MdiParent = this; regionForm.Dock = DockStyle.Fill; Incident_management IMForm = new Incident_management(this); IMForm.MdiParent = this; IMForm.Dock = DockStyle.Fill; Personnel_Management PMForm = new Personnel_Management(this); PMForm.MdiParent = this; PMForm.Dock = DockStyle.Fill; Forms.Add(indexForm); Forms.Add(regionForm); Forms.Add(IMForm); Forms.Add(PMForm); Forms[REGION].Show(); }
//Initialilise the parent MDI and setup the forms with their properties //Add the forms into a list. public mainform() { InitializeComponent(); Forms = new List<Form>(); index indexForm = new index(this); indexForm.MdiParent = this; indexForm.Dock = DockStyle.Fill; region regionForm = new region(this); regionForm.MdiParent = this; regionForm.Dock = DockStyle.Fill; Incident_management IMForm = new Incident_management(this); IMForm.MdiParent = this; IMForm.Dock = DockStyle.Fill; Personnel_Management PMForm = new Personnel_Management(this); PMForm.MdiParent = this; PMForm.Dock = DockStyle.Fill; Forms.Add(indexForm); Forms.Add(regionForm); Forms.Add(IMForm); Forms.Add(PMForm); Forms[REGION].Show(); }