Ejemplo n.º 1
0
 private void ReleaseSubscribe()
 {
     TradeFacade.Clients().ForEach((client) => {
         client.PlaceReportReceived  -= On_PlaceReportReceived;
         client.FillReportReceived   -= On_FillReportReceived;
         client.CancelReportReceived -= On_CancelReportReceived;
     });
 }
Ejemplo n.º 2
0
 private void InitSubscirbe()
 {
     TradeFacade.Clients().ForEach((client) => {
         client.PlaceReportReceived  += On_PlaceReportReceived;
         client.FillReportReceived   += On_FillReportReceived;
         client.CancelReportReceived += On_CancelReportReceived;
     });
 }
Ejemplo n.º 3
0
 private void InitTradeClient()
 {
     TradeFacade.Clients().ForEach(BindTradeClient);
 }
Ejemplo n.º 4
0
 private void On_Form_Close(object sender, FormClosingEventArgs e)
 {
     TradeFacade.Clients().ForEach(UnBindTradeClient);
     StockFacade.QuoteCache.OnCacheUpdated -= On_StockUpdate;
 }