コード例 #1
0
        //Opens Add Patient Form
        private void AddPatientButton_Click(object sender, EventArgs e)
        {
            FormAddPatient newPatient = new FormAddPatient(AllRooms, ThisDay.Date);

            newPatient.SavedPatient += AddPatient_SavedPatient;
            newPatient.Show();
        }
コード例 #2
0
        //Edit anticipated patient or change to delivered patient
        private void AnticipatedGrid_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            AnticipatedPatient patientToEdit = AnticipatedGrid.CurrentRow.DataBoundItem as AnticipatedPatient;

            FamilySuites.AnticipatedPatients.Remove(patientToEdit);
            FormAddPatient editPatient = new FormAddPatient(AllRooms, ThisDay.Date, patientToEdit);

            editPatient.SavedPatient += AddPatient_SavedPatient;
            editPatient.Show();
        }