Exemple #1
0
 private void btn_instanzieren_Click(object sender, EventArgs e)
 {
     person.neu("Muster", "Max", "Stübelallee 12", "01307", "Dresden");
     txtb_instanzieren.Text = person.getVorname() + " " + person.getName() + ", " + person.getStrasse() + ", " + person.getPLZ() + " " + person.getOrt();
 }
Exemple #2
0
        /// <summary>
        /// ruft ortEintragen(..), trägt in Gast.txt gastID, gName, vorname, strasse, ortsID ein.
        /// </summary>
        /// <param name="gast">The gast.</param>
        public void gastEintragen(TGast gast)
        {
            // {gastID, gName, vorname, strasse, ortsID}
            string gastneu = Environment.NewLine + getNeuerGastId() + ", " + gast.getName() + ", " + gast.getVorname() + ", " + gast.getStrasse() + ", " + ortEintragen(gast.getPLZ(), gast.getOrt());

            File.AppendAllText(gastfile, gastneu);
        }