static void Main() { Kartei.GetKartei(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new PatientenVerwaltung()); }
private void BtnSaveNewPerson_Click(object sender, EventArgs e) { string gender = comboGender.Text; string title = comboTitle.Text; string lastname = txtLastname.Text; string firstname = txtFirstname.Text; string address = txtAddress.Text; string city = txtCity.Text; string plz = txtPlz.Text; string tel = txtTel.Text; string email = txtEmail.Text; DateTime birthdate = dateTimePickerBirthdate.Value; Patient patient = new Patient(title, gender, lastname, firstname, address, city, plz, tel, email, birthdate); PatientenKarte patientenKarte = new PatientenKarte(patient); Kartei.GetKartei().AddCard(patientenKarte); ListViewItem item = new ListViewItem(); item.Text = patient.id.ToString(); item.SubItems.Add(title); item.SubItems.Add(gender); item.SubItems.Add(lastname); item.SubItems.Add(firstname); item.SubItems.Add(birthdate.ToString()); this.Close(); }
private void BtnDeletePatient_Click(object sender, EventArgs e) { string text = lsvPatientCards.SelectedItems[0].Text; int id = Convert.ToInt32(text); Kartei.GetKartei().RemoveCard(id); lsvPatientCards.Items.Remove(lsvPatientCards.SelectedItems[0]); }
public List <Behandlung> GetBehandlungen() { Kartei kartei = Kartei.GetKartei(); return(kartei.GetBehandlungenFromQuartal(this)); }