//-------------------------------------------------------------------------------- public ViewPositionForm(RealTimePositionCalculator c) { InitializeComponent(); calc = c; helper.Add(new DgvHelper(dgvRealTimePosition, Name, true)); dgvRealTimePosition.DataSource = AllRealTimePositions; helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); handleDtcMessageReceived = new IncomingDtcMessageEventHandler(DtcMessageReceived); handleCusipSelected = new CusipSelectEventHandler(Instance_handleCusipSelected); handleStockInfoUpdated = new StockInfoUpdateEventHandler(Instance_handleStockInfoUpdated); handleStockPriceUpdated = new StockPriceUpdateEventHandler(Instance_handleStockPriceUpdated); DtcChannel.Instance.handleDtcMessageReceived += handleDtcMessageReceived; DtcChannel.Instance.handleCusipSelected += handleCusipSelected; DtcChannel.Instance.handleStockInfoUpdated += handleStockInfoUpdated; DtcChannel.Instance.handleStockPriceUpdated += handleStockPriceUpdated; ToolTip ToolTipBtnPledge = new ToolTip(); ToolTipBtnPledge.SetToolTip(btnPledge, "Pledge the highlighted rows"); /* * DtcChannel.Instance.handleDtcMessageReceived += new IncomingDtcMessageEventHandler(DtcMessageReceived); * DtcChannel.Instance.handleCusipSelected += new CusipSelectEventHandler(Instance_handleCusipSelected); * DtcChannel.Instance.handleStockInfoUpdated += new StockInfoUpdateEventHandler(Instance_handleStockInfoUpdated); * DtcChannel.Instance.handleStockPriceUpdated += new StockPriceUpdateEventHandler(Instance_handleStockPriceUpdated); */ }
public RecallActivityForm() { InitializeComponent(); dgvRecalledLots.DataSource = RecalledLots; dgvRecalls.DataSource = Recalls; helper.Add(new DgvHelper(dgvRecalls, Name, true)); helper.Add(new DgvHelper(dgvRecalledLots, Name, true)); handleCusipSelected = new CusipSelectEventHandler(OnCusipSelected); DtcChannel.Instance.handleCusipSelected += handleCusipSelected; }
public ReturnByCtpyActivityForm() { InitializeComponent(); dgvAllocations.DataSource = Allocations; dgvReturns.DataSource = Returns; helper.Add(new DgvHelper(dgvReturns, Name, true)); helper.Add(new DgvHelper(dgvAllocations, Name, true)); helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); handleCusipSelected = new CusipSelectEventHandler(OnCusipSelected); DtcChannel.Instance.handleCusipSelected += handleCusipSelected; }
public G1PositionsForm() { InitializeComponent(); dgvBorrows.DataSource = Borrows; dgvLoans.DataSource = Loans; helper.Add(new DgvHelper(dgvBorrows, this.Name, true)); helper.Add(new DgvHelper(dgvLoans, this.Name, true)); helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); handleCusipSelected = new CusipSelectEventHandler(OnCusipSelected); DtcChannel.Instance.handleCusipSelected += handleCusipSelected; }
//------------ public DtcActivityForm() { InitializeComponent(); dgvDeliveryOrders.DataSource = Display; DGVDel = new DgvHelper(dgvDeliveryOrders, this.Name, true); helper.Add(DGVDel); helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); handleDtcMessageReceived = new IncomingDtcMessageEventHandler(Instance_handleDtcMessageReceived); handleCusipSelected = new CusipSelectEventHandler(OnCusipSelected); DtcChannel.Instance.handleDtcMessageReceived += handleDtcMessageReceived; DtcChannel.Instance.handleCusipSelected += handleCusipSelected; }
public PriceControlForm(RealTimePositionCalculator c) { InitializeComponent(); calc = c; dgvControl.DataSource = ProblemOrders; dgvDifferentPrices.DataSource = DifferentPricedOrders; helper.Add(new DgvHelper(dgvControl, this.Name, true)); helper.Add(new DgvHelper(dgvDifferentPrices, this.Name, true)); helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); handleDtcMessageReceived = new IncomingDtcMessageEventHandler(DtcMessageReceived); handleCusipSelected = new CusipSelectEventHandler(Instance_handleCusipSelected); handleStockInfoUpdated = new StockInfoUpdateEventHandler(Instance_handleStockInfoUpdated); handleStockPriceUpdated = new StockPriceUpdateEventHandler(Instance_handleStockPriceUpdated); DtcChannel.Instance.handleDtcMessageReceived += handleDtcMessageReceived; DtcChannel.Instance.handleCusipSelected += handleCusipSelected; DtcChannel.Instance.handleStockInfoUpdated += handleStockInfoUpdated; DtcChannel.Instance.handleStockPriceUpdated += handleStockPriceUpdated; }