/// <summary> /// 저장버튼 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnSave_Click(object sender, EventArgs e) { string strSql = ""; strSql = @" DELETE FROM FTP;"; strSql += @" INSERT INTO FTP ( 'IP', 'ID', 'PW') VALUES ( '" + Network.Encrypt(txtAddress.Text) + @"', '" + Network.Encrypt(txtID.Text) + @"', '" + Network.Encrypt(txtPassWd.Text) + @"' );"; int iresult = Network.ExecDB(strSql); if (iresult > 0) { MessageBox.Show("저장되었습니다. 재시작하세요"); } else { MessageBox.Show("저장에 실패하였습니다."); } }