Ejemplo n.º 1
0
        /// <summary>
        /// 환경 설정창에서 발생하는 TCP 셋팅 값 변경 이벤트
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void optionForm_OnTcpSettingEvt(object sender, TcpSettingEventArgs e)
        {
            AdengUtil.INIWriteValueString(this.setting, this.TCPIP, e.Ip, this.IniFilePath);
            AdengUtil.INIWriteValueString(this.setting, this.TCPPort, e.Port, this.IniFilePath);
            this.localTcpIp   = e.Ip;
            this.localTcpPort = int.Parse(e.Port);

            //바뀐 설정값으로 재연결
            this.clientSoc.Disconnect();
            this.clientSoc.ConnectTo(this.localTcpIp, this.localTcpPort);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 환경 설정창에서 발생하는 UDP 셋팅 값 변경 이벤트
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void optionForm_OnUdpSettingEvt(object sender, TcpSettingEventArgs e)
 {
     AdengUtil.INIWriteValueString(this.setting, this.UDPIP, e.Ip, this.IniFilePath);
     AdengUtil.INIWriteValueString(this.setting, this.UDPPort, e.Port, this.IniFilePath);
     MessageBox.Show("UDP setting changed. Please program restart!", "EDWS DB Manager", MessageBoxButtons.OK, MessageBoxIcon.Warning);
 }