public void AddReport( U50Form.ScanNowReport scanNowReport )
        {
            DocumentReport userU50Graph = new DocumentReport();
            userU50Graph.Parent = this.axTabControlStock;

            iIndex++;
            this.axTabControlStock.InsertItem( iIndex, scanNowReport.Name, userU50Graph.Handle.ToInt32(), 0 );

            m_ScanNowReport.Add( scanNowReport, userU50Graph );
        }
        public void AddReport(U50Form.ScanNowReport scanNowReport)
        {
            DocumentReport userU50Graph = new DocumentReport();

            userU50Graph.Parent = this.axTabControlStock;

            iIndex++;
            this.axTabControlStock.InsertItem(iIndex, scanNowReport.Name, userU50Graph.Handle.ToInt32(), 0);

            m_ScanNowReport.Add(scanNowReport, userU50Graph);
        }
        private void Timer1_Tick(object sender, EventArgs e)
        {
            foreach (var item in m_ScanNowReportList)
            {
                if (item.IsOK == true)
                {
                    DocumentReport outDocumentReport = null;
                    if (m_ScanNowReport.TryGetValue(item, out outDocumentReport) == false)
                    {
                        item.IsShowOK    = false;
                        item.IsAddShowOK = false;
                    }

                    if (item.IsShowOK == false)
                    {
                        item.IsShowOK = true;
                        AddReport(item);
                    }

                    if (item.IsAddShowOK == false)
                    {
                        item.IsAddShowOK = true;

                        if (m_ScanNowReport.TryGetValue(item, out outDocumentReport) == true)
                        {
                            outDocumentReport.Init(item.ReportInfo);
                        }
                    }
                }
                else
                {
                    if (item.IsShowOK == true)
                    {
                        continue;
                    }
                    else
                    {
                        AddReport(item);
                        item.IsShowOK = true;
                    }
                }
            }
        }
        private void CreateTabControl()
        {
            //DocumentU50Graph userU50Graph = new DocumentU50Graph();
            //userU50Graph.Parent = this.axTabControlStock;

            //this.axTabControlStock.InsertItem( 0, "股票符号01", userU50Graph.Handle.ToInt32(), 0 );


            //userU50Graph = new DocumentU50Graph();
            //userU50Graph.Parent = this.axTabControlStock;

            //this.axTabControlStock.InsertItem( 1, "股票符号02", userU50Graph.Handle.ToInt32(), 0 );


            //userU50Graph = new DocumentU50Graph();
            //userU50Graph.Parent = this.axTabControlStock;

            //this.axTabControlStock.InsertItem( 2, "股票符号03", userU50Graph.Handle.ToInt32(), 0 );

            DocumentReport userU50Graph = new DocumentReport();
            userU50Graph.Parent = this.axTabControlStock;

            this.axTabControlStock.InsertItem( 0, "报表01", userU50Graph.Handle.ToInt32(), 0 );


            userU50Graph = new DocumentReport();
            userU50Graph.Parent = this.axTabControlStock;

            this.axTabControlStock.InsertItem( 1, "报表02", userU50Graph.Handle.ToInt32(), 0 );


            userU50Graph = new DocumentReport();
            userU50Graph.Parent = this.axTabControlStock;

            this.axTabControlStock.InsertItem( 2, "报表03", userU50Graph.Handle.ToInt32(), 0 );

        }
示例#5
0
        private void CreateTabControl()
        {
            //DocumentU50Graph userU50Graph = new DocumentU50Graph();
            //userU50Graph.Parent = this.axTabControlStock;

            //this.axTabControlStock.InsertItem( 0, "股票符号01", userU50Graph.Handle.ToInt32(), 0 );


            //userU50Graph = new DocumentU50Graph();
            //userU50Graph.Parent = this.axTabControlStock;

            //this.axTabControlStock.InsertItem( 1, "股票符号02", userU50Graph.Handle.ToInt32(), 0 );


            //userU50Graph = new DocumentU50Graph();
            //userU50Graph.Parent = this.axTabControlStock;

            //this.axTabControlStock.InsertItem( 2, "股票符号03", userU50Graph.Handle.ToInt32(), 0 );

            DocumentReport userU50Graph = new DocumentReport();

            userU50Graph.Parent = this.axTabControlStock;

            this.axTabControlStock.InsertItem(0, "报表01", userU50Graph.Handle.ToInt32(), 0);


            userU50Graph        = new DocumentReport();
            userU50Graph.Parent = this.axTabControlStock;

            this.axTabControlStock.InsertItem(1, "报表02", userU50Graph.Handle.ToInt32(), 0);


            userU50Graph        = new DocumentReport();
            userU50Graph.Parent = this.axTabControlStock;

            this.axTabControlStock.InsertItem(2, "报表03", userU50Graph.Handle.ToInt32(), 0);
        }