public void Initialize()
        {
            m_MainTreeNodeSub  = new TreeNode("常规设置");
            m_MainTreeNodeSub1 = new TreeNode("全局股票清单");
            m_MainTreeNodeSub2 = new TreeNode("扫描触发器");

            // 设置
            this.TreeView.Nodes.Add(m_MainTreeNodeSub);
            this.TreeView.Nodes.Add(m_MainTreeNodeSub1);
            this.TreeView.Nodes.Add(m_MainTreeNodeSub2);

            {
                m_OptionControlSub1         = new OptionControlSub1();
                m_OptionControlSub1.Dock    = DockStyle.Fill;
                m_OptionControlSub1.Visible = false;

                this.m_AllConfigControlInfo.Add(m_MainTreeNodeSub, m_OptionControlSub1);
                this.Panel.Controls.Add(m_OptionControlSub1);
            }

            {
                m_OptionControlSub2                    = new OptionControlSub2();
                m_OptionControlSub2.Dock               = DockStyle.Fill;
                m_OptionControlSub2.Visible            = false;
                m_OptionControlSub2.ButtonSaveChanged += new EventHandler(OptionControlSub2_ButtonSaveChanged);

                this.m_AllConfigControlInfo.Add(m_MainTreeNodeSub1, m_OptionControlSub2);
                this.Panel.Controls.Add(m_OptionControlSub2);
            }

            {
                m_OptionControlSub3                    = new OptionControlSub3();
                m_OptionControlSub3.Dock               = DockStyle.Fill;
                m_OptionControlSub3.Visible            = false;
                m_OptionControlSub3.ButtonSaveChanged += new EventHandler(OptionControlSub2_ButtonSaveChanged);

                this.m_AllConfigControlInfo.Add(m_MainTreeNodeSub2, m_OptionControlSub3);
                this.Panel.Controls.Add(m_OptionControlSub3);
            }

            OptionFormInfo optionFormInfo = OptionFormInfo.LoadOptionFormInfo(OptionFormInfo.ConfigFilePath);

            m_OptionControlSub1.SetGeneralInfo(optionFormInfo.m_GeneralInfo);
            m_OptionControlSub2.SetStockFileInfos(optionFormInfo.m_StockFileInfos);
            m_OptionControlSub3.SetTriggerInfos(optionFormInfo.m_TriggerInfos);

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

            // 设置
            this.TreeView.Nodes.Add( m_MainTreeNodeSub );
            this.TreeView.Nodes.Add( m_MainTreeNodeSub1 );
            this.TreeView.Nodes.Add( m_MainTreeNodeSub2 );

            {
                m_OptionControlSub1 = new OptionControlSub1();
                m_OptionControlSub1.Dock = DockStyle.Fill;
                m_OptionControlSub1.Visible = false;

                this.m_AllConfigControlInfo.Add( m_MainTreeNodeSub, m_OptionControlSub1 );
                this.Panel.Controls.Add( m_OptionControlSub1 );
            }

            {
                m_OptionControlSub2 = new OptionControlSub2();
                m_OptionControlSub2.Dock = DockStyle.Fill;
                m_OptionControlSub2.Visible = false;
                m_OptionControlSub2.ButtonSaveChanged += new EventHandler( OptionControlSub2_ButtonSaveChanged );

                this.m_AllConfigControlInfo.Add( m_MainTreeNodeSub1, m_OptionControlSub2 );
                this.Panel.Controls.Add( m_OptionControlSub2 );
            }

            {
                m_OptionControlSub3 = new OptionControlSub3();
                m_OptionControlSub3.Dock = DockStyle.Fill;
                m_OptionControlSub3.Visible = false;
                m_OptionControlSub3.ButtonSaveChanged += new EventHandler( OptionControlSub2_ButtonSaveChanged );

                this.m_AllConfigControlInfo.Add( m_MainTreeNodeSub2, m_OptionControlSub3 );
                this.Panel.Controls.Add( m_OptionControlSub3 );
            }

            OptionFormInfo optionFormInfo = OptionFormInfo.LoadOptionFormInfo( OptionFormInfo.ConfigFilePath );
            m_OptionControlSub1.SetGeneralInfo( optionFormInfo.m_GeneralInfo );
            m_OptionControlSub2.SetStockFileInfos( optionFormInfo.m_StockFileInfos );
            m_OptionControlSub3.SetTriggerInfos( optionFormInfo.m_TriggerInfos );

            this.TreeView.SelectedNode = m_MainTreeNodeSub;
        }
 public void SetOptionFormInfo(OptionFormInfo optionFormInfo)
 {
     m_OptionControlSub2.SetStockFileInfos(optionFormInfo.m_StockFileInfos);
     m_OptionControlSub3.SetTriggerInfos(optionFormInfo.m_TriggerInfos);
 }