Esempio n. 1
0
        static void Main(string[] args)
        {
            var order = new ForexOrder {
                AccountNumber = "1574078"
            };
            var mailService     = new MailService();
            var documentService = new DocumentService();

            order.OnForexOrderSave += mailService.HandleOrderSaveEvent;
            order.OnForexOrderSave += documentService.HandleOrderSaveEvent;

            order.Save();

            Console.ReadLine();
        }
Esempio n. 2
0
 public void OnSaveEvent(ForexOrder order)
 {
     OnForexOrderSave?.Invoke(this, new ForexOrderEventArgs {
         Order = order
     });
 }