예제 #1
0
파일: Form1.cs 프로젝트: hajuli/test_codes
        public Form1()
        {
            InitializeComponent();
            this.MaximizeBox = false;

            this.StartBtn.Text = GlobalVar.StartBtn_start;
            this.StressBtn.Text = GlobalVar.StressBtn_start;
            this.CurrentTimeLab.Text = "";

            ConfigParser conf = new ConfigParser();
            conf.parseFile(@"configUI.xml");
            string title = conf.readShowTitle();
            this.Text = title;
            DataArea tabs = conf.readDataArea();
            m_tabContainer = new TabContainer(this.tabControl1, tabs);

            this.StatustextBox.Text = "main Form init ok";

            m_dllProcessor = new DllCallBackProcessor(this);
            m_dllProcessor.registerToDll();

            m_myTimer = new Timer();
            m_myTimer.Tick += new EventHandler(this.TimerEventProcessor);
            m_myTimer.Interval = 100;
            m_myTimer.Start();

            //hideTestObjects();
        }