this.progName = fm.txProgram.Text;
this.txDonwloadPath.Text = fm.txDownloadPath.Text;
this.connString = fm.txConnString.Text;
this.connType = byte.Parse(fm.txConnType.Text);
this.psw = fm.txPsw.Text;
this.readKcount = byte.Parse(fm.txReadKcount.Text);
if (readKcount > 64)
{
readKcount = 4;
}
System.Xml.XmlDocument configDoc = new System.Xml.XmlDocument();
configDoc.Load(this.configFile);
System.Xml.XmlElement root = configDoc.DocumentElement;
root["serverIP"].InnerText = this.serverIP;
root["serverPort"].InnerText = this.serverPort;
root["progName"].InnerText = this.progName;
root["downloadPath"].InnerText = this.txDonwloadPath.Text;
root["connString"].InnerText = this.connString;
root["connType"].InnerText = this.connType.ToString();
root["psw"].InnerText = this.psw;
root["readKcount"].InnerText = this.readKcount.ToString();
configDoc.Save(this.configFile);
}
}
}
private void btnQuerry_Click(object sender, EventArgs e)//查询按钮点击处理
{
if (this.txFileName.Text.Length == 0)
{
|