Example #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;
            }
        }
Example #2
0
 public override bool WebSendingTransaction(Bank reciver, int fintDolars)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public abstract bool WebRecivingTransaction(Bank sender, int fintDolars);
Example #4
0
 public abstract bool WebSendingTransaction(Bank reciver, int fintDolars);