Ejemplo n.º 1
0
        private void btnDefault_Click(object sender, EventArgs e)
        {
            ConfigDataList configList = null;

            Log("UI", "Default Button Click");
            setInformationDatas(configList);
            //지정해 놓은 default값을 각 구간에 넣음.
        }
Ejemplo n.º 2
0
        public void setInformationDatas(ConfigDataList configList)
        {
            ConfigDataList ConfigList = configList;

            this.txtHSMSDriver.Text = ConfigList.HSMS_HSMSDRIVERID;
            this.txtDeviceName.Text = ConfigList.HSMS_DEIVCEID;
            this.cmbIdentity.Text   = ConfigList.HSMS_IDENTITY;
            this.txtSECSMode.Text   = ConfigList.HSMS_SECSMODE;
            this.txtRemoteIP.Text   = ConfigList.HSMS_REMOTEIP;
            this.txtRemotePort.Text = ConfigList.HSMS_REMOTEPORT;
            this.txtSEComINI.Text   = ConfigList.HSMS_SECOMINI;

            this.txtT3Time.Text       = ConfigList.HSMS_T3TIMEOUT;
            this.txtT5Time.Text       = ConfigList.HSMS_T5TIMEOUT;
            this.txtT6Time.Text       = ConfigList.HSMS_T6TIMEOUT;
            this.txtT7Time.Text       = ConfigList.HSMS_T7TIMEOUT;
            this.txtT8Time.Text       = ConfigList.HSMS_T8TIMEOUT;
            this.txtCTTime.Text       = ConfigList.HSMS_CTTIMEOUT;
            this.txtLinkTestTime.Text = ConfigList.HSMS_LINKTESTTIMEOUT;
        }
Ejemplo n.º 3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            ConfigDataList configList = null;

            Log("UI", "Save Button Click");
            Log("UI", _configDataList.YESDRV.ToString());

            //configList.HSMS_HSMSDRIVERID = this.txtHSMSDriver.Text;
            //configList.HSMS_DEIVCEID = this.txtDeviceName.Text;
            //configList.HSMS_IDENTITY = this.cmbIdentity.Text;
            //configList.HSMS_SECSMODE = this.txtSECSMode.Text;
            //configList.HSMS_REMOTEIP = this.txtRemoteIP.Text;
            //configList.HSMS_REMOTEPORT = this.txtRemotePort.Text;
            //configList.HSMS_SECOMINI = this.txtSEComINI.Text;

            //configList.HSMS_T3TIMEOUT = this.txtT3Time.Text;
            //configList.HSMS_T5TIMEOUT = this.txtT5Time.Text;
            //configList.HSMS_T6TIMEOUT = this.txtT6Time.Text;
            //configList.HSMS_T7TIMEOUT = this.txtT7Time.Text;
            //configList.HSMS_T8TIMEOUT = this.txtT8Time.Text;
            //configList.HSMS_CTTIMEOUT = this.txtCTTime.Text;
            //configList.HSMS_LINKTESTTIMEOUT = this.txtLinkTestTime.Text;
            _configDataList.YESDRV.Mode = cbServerClient.Text;
            if (cbServerClient.Text.ToUpper() == "SERVER")
            {
                _configDataList.YESDRV.LocalIP   = txtIP.Text;
                _configDataList.YESDRV.LocalPort = int.Parse(txtPort.Text);
            }
            else
            {
                _configDataList.YESDRV.RemoteIP   = txtIP.Text;
                _configDataList.YESDRV.RemotePort = int.Parse(txtPort.Text);
            }
            _configDataList.Save();

            Log("UI", _configDataList.YESDRV.ToString());
        }
Ejemplo n.º 4
0
        private void UpdateData(ConfigDataList configDataList)
        {
            UpdateDataHandler del = new UpdateDataHandler(setInformationDatas);

            this.Invoke(del, configDataList);
        }