Exemple #1
0
        /// <summary>
        /// Constructor for the form
        /// </summary>
        public PricesForm()
        {
            InitializeComponent();

            //m_prices = global::IQFeed.PriceFeed.Instance;
            m_prices = PriceFeed.Instance;
            m_prices.UpdatePrices += M_prices_UpdatePrices;

            m_level1Grid = new DynamicDisplayGrid(gridLevel1, this);
            m_spreadGrid = new DynamicDisplayGrid(gridSpreads, this);

            m_level1Grid.InitializeColumns(PriceRow.Columns, Color.White);
            m_spreadGrid.InitializeColumns(SpreadRow.Columns, Color.White);

            m_spreadGrid.Columns["Formula"].MinimumWidth = 300;
            m_spreadGrid.Columns["Formula"].CellTemplate.Style.Alignment = DataGridViewContentAlignment.MiddleLeft;
        }
Exemple #2
0
        /// <summary>
        /// Constructor for the form
        /// </summary>
        public PricesForm()
        {
            InitializeComponent();

            m_priceGrid = new DynamicDisplayGrid(gridPrices, this);
            m_spreadGrid = new DynamicDisplayGrid(gridSpreads, this);

            m_priceGrid.InitializeColumns(PriceRow.Columns, Color.White);
            m_spreadGrid.InitializeColumns(SpreadRow.Columns, Color.White);

            m_spreadGrid.Columns["Formula"].MinimumWidth = 300;
            m_spreadGrid.Columns["Formula"].CellTemplate.Style.Alignment = DataGridViewContentAlignment.MiddleLeft;


            m_publisher = new ZMQPublisher();
            m_subscriber = new ZMQSubscriber();
            m_subscriberClientTask = Task.Factory.StartNew(() => m_subscriber.SubscriptionLoop());
        }