//-------------------------------------------------------------------------------- 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 HedgeCashForm(RealTimePositionCalculator c) { InitializeComponent(); calc = c; helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); DtcChannel.Instance.handleDtcMessageReceived += new IncomingDtcMessageEventHandler(Instance_handleDtcMessageReceived); }
public NsccProjectedNeedsForm(RealTimePositionCalculator c) { InitializeComponent(); calc = c; helper.Add(new DgvHelper(dgvRealTimePosition, Name, true)); dgvRealTimePosition.DataSource = ProjectedNeeds; handleStockInfoUpdated = new StockInfoUpdateEventHandler(Instance_handleStockInfoUpdated); handleDtcMessageReceived = new IncomingDtcMessageEventHandler(Instance_handleDtcMessageReceived); DtcChannel.Instance.handleStockInfoUpdated += handleStockInfoUpdated; DtcChannel.Instance.handleDtcMessageReceived += handleDtcMessageReceived; }
public OccHedgeForm(RealTimePositionCalculator c) { InitializeComponent(); calc = c; dgvIncoming.DataSource = IncomingOrders; dgvOutgoing.DataSource = OutgoingOrders; helper.Add(new DgvHelper(dgvIncoming, Name, true)); helper.Add(new DgvHelper(dgvOutgoing, Name, true)); helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); DtcChannel.Instance.handleDtcMessageReceived += new IncomingDtcMessageEventHandler(DtcMessageReceived); }
public OccHedgePositionForm(RealTimePositionCalculator c) { InitializeComponent(); calc = c; helper.Add(new DgvHelper(dgvRealTimePosition, Name, true)); dgvRealTimePosition.DataSource = AllRealTimePositions; helper.handleCellSelected += new CellSelectEventHandler(h_handleCellSelected); DtcChannel.Instance.handleCusipSelected += new CusipSelectEventHandler(Instance_handleCusipSelected); DtcChannel.Instance.handleStockInfoUpdated += new StockInfoUpdateEventHandler(Instance_handleStockInfoUpdated); DtcChannel.Instance.handleStockPriceUpdated += new StockPriceUpdateEventHandler(Instance_handleStockPriceUpdated); DtcChannel.Instance.handlePositionUpdated += new PositionUpdateEventHandler(Instance_handlePositionUpdated); }
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; }