Exemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     meinKonto = new Konto("Alen");
     deinKonto = new Konto("Johann");
     updateKontostand();
 }
Exemplo n.º 2
0
 public bool auszahlen(decimal betrag, Konto ziel, string verwendungszweck)
 {
     if (betrag > kontoStand)
     {
         return(false);
     }
     else
     {
         kontoStand = kontoStand - betrag;
         transaktionen.Add(new Auszahlung(betrag * -1, this, ziel, verwendungszweck));
         return(true);
     }
 }
Exemplo n.º 3
0
 public bool überweisen(Konto zielkonto, decimal betrag, string verwendungszweck)
 {
     if (betrag > kontoStand)
     {
         return(false);
     }
     else
     {
         auszahlen(betrag, zielkonto, verwendungszweck);
         zielkonto.einzahlen(betrag, this, verwendungszweck);
         //transaktionen.Add(new Überweisung(this, zielkonto, verwendungszweck, betrag));
         return(true);
     }
 }
Exemplo n.º 4
0
 internal bool überweisen(Konto deinKonto, decimal überweisungsBetrag, object text)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 5
0
 public bool einzahlen(decimal betrag, Konto quelle, string verwendungszweck)
 {
     kontoStand = kontoStand + betrag;
     transaktionen.Add(new Einzahlung(betrag, quelle, this, verwendungszweck));
     return(true);
 }