//Pokazvane na formata za registraciq na pacient private void ButtonAddPatient_Click(object sender, EventArgs e) { NewPatientForm newPatientForm = new NewPatientForm(); newPatientForm.ShowDialog(); UpdatePatients(); }
//Otvarqne na forma za registrirane na nov pacient //i opresnqvane na "comboBoxPatient" kato se zapazi izbraniq private void buttonAdd_Click(object sender, EventArgs e) { int selected = comboBoxPatient.SelectedIndex; NewPatientForm newPatientForm = new NewPatientForm(); newPatientForm.ShowDialog(); UpdatePatients(); comboBoxPatient.SelectedIndex = selected; }