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