Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }