Exemple #1
0
        public bool transaction(Bank reciver, int fintDolars)
        {
            Console.WriteLine("Begin transaction from " + this.ToString() + " to " + reciver.ToString());

            if (this.WebSendingTransaction(reciver, fintDolars) && reciver.WebRecivingTransaction(this, fintDolars))
            {
                Console.WriteLine("Transaction completed!");
                return true;
            }
            else
            {
                this.WebrollBack();
                reciver.WebrollBack();
                return false;
            }
        }
Exemple #2
0
 public override bool WebSendingTransaction(Bank reciver, int fintDolars)
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public abstract bool WebRecivingTransaction(Bank sender, int fintDolars);
Exemple #4
0
 public abstract bool WebSendingTransaction(Bank reciver, int fintDolars);