private void OnShowTickerChartItemClick(object sender, ItemClickEventArgs e)
        {
            TickerCollection collection = (TickerCollection)this.gridView1.GetFocusedRow();

            if (collection == null)
            {
                return;
            }
            TickerForm form;

            if (e.Item.Tag == null)
            {
                for (int i = 0; i < collection.Tickers.Length; i++)
                {
                    Ticker ticker = collection.Tickers[i];
                    if (ticker == null)
                    {
                        return;
                    }
                    form           = new TickerForm();
                    form.Ticker    = ticker;
                    form.MdiParent = MdiParent;
                    form.Show();
                }
                return;
            }

            form           = new TickerForm();
            form.Ticker    = collection.Tickers[(int)e.Item.Tag];
            form.MdiParent = MdiParent;
            form.Show();
        }
示例#2
0
        void ShowDetailsForSelectedItemCore(Ticker t)
        {
            if (this.gvTikers.FocusedRowHandle == GridControl.InvalidRowHandle)
            {
                return;
            }
            TickerForm form = new TickerForm();

            form.MarketName = t.HostName;
            form.Ticker     = t;
            form.MdiParent  = MdiParent;
            form.Show();
        }
示例#3
0
        void ShowDetailsForSelectedItemCore()
        {
            if (this.gridView1.FocusedRowHandle == GridControl.InvalidRowHandle)
            {
                return;
            }
            ITicker    t    = (ITicker)this.gridView1.GetRow(this.gridView1.FocusedRowHandle);
            TickerForm form = new TickerForm();

            form.Ticker    = t;
            form.MdiParent = MdiParent;
            form.Show();
        }