Exemplo n.º 1
0
        public void Initialize()
        {
            m_MainTreeNode     = new TreeNode("常规设置");
            m_MainTreeNodeSub  = new TreeNode("股票扫描设置");
            m_MainTreeNodeSub2 = new TreeNode("股票清单设置");

            {
                // 设置
                this.TreeView.Nodes.Add(m_MainTreeNode);

                m_ScanControlSub         = new SRControlSub1();
                m_ScanControlSub.Dock    = DockStyle.Fill;
                m_ScanControlSub.Visible = false;

                this.m_AllConfigControlInfo.Add(m_MainTreeNode, m_ScanControlSub);

                this.Panel.Controls.Add(m_ScanControlSub);
            }

            {
                this.TreeView.Nodes.Add(m_MainTreeNodeSub);

                m_ScanControlSub2         = new SRControlSub2();
                m_ScanControlSub2.Dock    = DockStyle.Fill;
                m_ScanControlSub2.Visible = false;

                this.m_AllConfigControlInfo.Add(m_MainTreeNodeSub, m_ScanControlSub2);

                this.Panel.Controls.Add(m_ScanControlSub2);
            }

            {
                this.TreeView.Nodes.Add(m_MainTreeNodeSub2);

                m_ScanControlSub3         = new SRControlSub3();
                m_ScanControlSub3.Dock    = DockStyle.Fill;
                m_ScanControlSub3.Visible = false;

                this.m_AllConfigControlInfo.Add(m_MainTreeNodeSub2, m_ScanControlSub3);

                this.Panel.Controls.Add(m_ScanControlSub3);
            }

            LHPPrimaryScanInfo getLHPScanInfo = GlobalSetting.LoadLHPPrimaryScanInfo(GlobalSetting.LHPPrimaryScanInfoFilePath);

            if (getLHPScanInfo != null)
            {
                this.SetLHPPrimaryScanInfo(getLHPScanInfo);
            }

            this.TreeView.SelectedNode = m_MainTreeNode;
        }
        public void Initialize()
        {
            m_MainTreeNode = new TreeNode( "常规设置" );
            m_MainTreeNodeSub = new TreeNode( "股票扫描设置" );
            m_MainTreeNodeSub2 = new TreeNode( "股票清单设置" );

            {
                // 设置
                this.TreeView.Nodes.Add( m_MainTreeNode );

                m_ScanControlSub = new SRControlSub1();
                m_ScanControlSub.Dock = DockStyle.Fill;
                m_ScanControlSub.Visible = false;

                this.m_AllConfigControlInfo.Add( m_MainTreeNode, m_ScanControlSub );

                this.Panel.Controls.Add( m_ScanControlSub );
            }

            {
                this.TreeView.Nodes.Add( m_MainTreeNodeSub );

                m_ScanControlSub2 = new SRControlSub2();
                m_ScanControlSub2.Dock = DockStyle.Fill;
                m_ScanControlSub2.Visible = false;

                this.m_AllConfigControlInfo.Add( m_MainTreeNodeSub, m_ScanControlSub2 );

                this.Panel.Controls.Add( m_ScanControlSub2 );
            }

            {
                this.TreeView.Nodes.Add( m_MainTreeNodeSub2 );

                m_ScanControlSub3 = new SRControlSub3();
                m_ScanControlSub3.Dock = DockStyle.Fill;
                m_ScanControlSub3.Visible = false;

                this.m_AllConfigControlInfo.Add( m_MainTreeNodeSub2, m_ScanControlSub3 );

                this.Panel.Controls.Add( m_ScanControlSub3 );
            }

            LHPPrimaryScanInfo getLHPScanInfo = GlobalSetting.LoadLHPPrimaryScanInfo( GlobalSetting.LHPPrimaryScanInfoFilePath );
            if ( getLHPScanInfo != null )
                this.SetLHPPrimaryScanInfo( getLHPScanInfo );

            this.TreeView.SelectedNode = m_MainTreeNode;
        }