public void NoticeObservers(SubjectEventArgs eventArgs)
 {
     if (Observers == null) return;
     foreach (var observer in Observers)
     {
         if (observer != null)
         {
             observer.Update(eventArgs);
         }
     }
 }
 public void NoticeObservers(SubjectEventArgs eventArgs)
 {
     if (Observers == null)
     {
         return;
     }
     foreach (var observer in Observers)
     {
         if (observer != null)
         {
             observer.Update(eventArgs);
         }
     }
 }
 public void Update(SubjectEventArgs eventArgs)
 {
     var args = eventArgs as BankTransferSubjectEventArgs;
     Console.WriteLine(args.RollOutCardNumber+" To "+args.RollInCardNumber+args.Money);
 }
 public void Update(SubjectEventArgs eventArgs)
 {
     Console.WriteLine("Display:"+eventArgs.Message);
 }
        public void Update(SubjectEventArgs eventArgs)
        {
            var args = eventArgs as BankTransferSubjectEventArgs;

            Console.WriteLine(args.RollOutCardNumber + " To " + args.RollInCardNumber + args.Money);
        }
 public void Update(SubjectEventArgs eventArgs)
 {
     Console.WriteLine("Display:" + eventArgs.Message);
 }