public MedicalCentreMainMenuForm() { this.Text = "Medical Centre Main Menu"; InitializeComponent(); MedicalCentreAllRecordsForm allRecordsForm = new MedicalCentreAllRecordsForm(); buttonRecords.Click += (s, e) => AllRecordsForm(allRecordsForm); // Administration MedicalCentreAdministrationForm medicalCentreAdministration = new MedicalCentreAdministrationForm(); buttonAdministration.Click += (s, e) => AdministrationForm(medicalCentreAdministration); }
public MedicalCentreMainMenuForm() { // title Text = "Medical Centre: Main Menu"; InitializeComponent(); // onload event Load += (s, e) => MedicalCentreMainForm_Load(); // create client management form and add to button click MedicalCentreAllRecordsForm allRecordsForm = new MedicalCentreAllRecordsForm(); buttonRecords.Click += (s, e) => LoadChildForm(allRecordsForm); // Administration form and add to button click MedicalCentreAdministrationForm medicalCentreAdministration = new MedicalCentreAdministrationForm(); buttonAdministration.Click += (s, e) => LoadChildForm(medicalCentreAdministration); }