public Treatment(int patientId, DateTime date, string entry, string medication, string note)
 {
     PatientId  = patientId;
     Date       = date;
     Entry      = entry;
     Medication = medication;
     Note       = note;
     Id         = Databasemanager.SaveTreatment(this);
 }
 public Patient(int id, DateTime birthday, string gender, InsuranceAgency insuranceAgency, int insuranceNr,
                Doctor localDoctor, Address address, string note) //für implementierung aus Datenbankdaten
 {
     Id              = id;
     Birthday        = birthday;
     Gender          = gender;
     InsuranceAgency = insuranceAgency;
     InsuranceNr     = insuranceNr;
     LocalDoctor     = localDoctor;
     Address         = address;
     Note            = note;
     Treatments      = Databasemanager.GetTreatments(id);
 }
 public Patient(DateTime birthday, string gender, InsuranceAgency insuranceAgency, int insuranceNr,
                Doctor localDoctor, Address address, string note) //für Neuimplementierung
 {
     Birthday        = birthday;
     Gender          = gender;
     InsuranceAgency = insuranceAgency;
     InsuranceNr     = insuranceNr;
     LocalDoctor     = localDoctor;
     Address         = address;
     Note            = note;
     Id         = Databasemanager.SavePatient(this);
     Treatments = new List <Treatment>();
 }
        public Address(string name, int plz, string country, string street, string houseNr, string village, string telNr,
                       string note)
        {
            Id      = 0;
            Name    = name;
            Plz     = plz;
            Country = country;
            Street  = street;
            HouseNr = houseNr;
            Village = village;
            TelNr   = telNr;
            Note    = note;

            Id = Databasemanager.SaveAddress(this);
        }
 public void Update()
 {
     Databasemanager.UpdateTreatment(this);
 }
 public void Update()
 {
     Databasemanager.UpdateAddress(this);
 }