cs.trigger = txtTrigger.getText();
cs.antiIdle = txtAntiIdle.getText();
cs.antiIdleTimer = Integer.parseInt(txtAntiIdleTimer.getText());
cs.enableAntiIdle = chkAntiIdle.isSelected();
CDKey k = (CDKey)cmbCDKey.getSelectedItem();
CDKey kLOD = (CDKey)cmbCDKeyLOD.getSelectedItem();
CDKey kTFT = (CDKey)cmbCDKeyTFT.getSelectedItem();
if(k != null)
cs.cdkey = formatCDKey(k.getKey());
if(kLOD != null)
cs.cdkeyLOD = formatCDKey(kLOD.getKey());
if(kTFT != null)
cs.cdkeyTFT = formatCDKey(kTFT.getKey());
cs.bncsServer = txtBNCSServer.getText();
cs.bnlsServer = txtBNLSServer.getText();
cs.channel = txtChannel.getText();
cs.colorScheme = (byte)(cmbColorScheme.getSelectedIndex() + 1);
cs.autoconnect = chkAutoConnect.isSelected();