예제 #1
0
        private void SettingForm_Load(object sender, EventArgs e)
        {
            try
            {
                this.CenterToScreen();
                // load net setting
                loadConfig();
                // load alarm setting
                // load im
                IMList = LEDConfig.loadIMList();
                // init data grid view
                initDataGrid();
                toolStripStatusLabel.Text = "設定載入完成";
            }
            catch (Exception ex)
            {
                toolStripStatusLabel.Text = "設定載入失敗:" + ex.Message;
            }

            // initialization
            dataGridView_IM.ClearSelection();
            label_help.Text = "";

            // add event handler
            dataGridView_IM.SelectionChanged += new EventHandler(dataGridView_IM_SelectionChanged);

            this.EdaWorker = new EdaWorker(presentIM);
        }
예제 #2
0
        private void SettingForm_Load(object sender, EventArgs e)
        {
            try
            {
                this.CenterToScreen();
                // load net setting
                loadConfig();
                // load alarm setting
                // load im
                IMList = LEDConfig.loadIMList();
                // init data grid view
                initDataGrid();
                toolStripStatusLabel.Text = "設定載入完成";
            }
            catch (Exception ex)
            {
                toolStripStatusLabel.Text = "設定載入失敗:" + ex.Message;
            }

            // initialization
            dataGridView_IM.ClearSelection();
            label_help.Text = "";

            // add event handler
            dataGridView_IM.SelectionChanged += new EventHandler(dataGridView_IM_SelectionChanged);

            this.EdaWorker = new EdaWorker(presentIM);
        }