- 博客(0)
- 资源 (6)
- 收藏
- 关注
使用DES加密,解密字符串,并保存为文件的类
使用DES加密,解密字符串,并保存为文件的类。
先读取一个文件加密,再保存为另一个文件。解压则反之。
List<string> result = new List<string>();
using (StreamReader smRead = new StreamReader(textBox1.Text.Trim(), System.Text.Encoding.Default))
{
//设置路径
string line;
while ((line = smRead.ReadLine()) != null)
{
string en = EncryptAndDecrypt.EncryptDES(line, "intproue");
result.Add(en);
}
EncryptAndDecrypt.SaveToTxtFile(result, false, textBox2.Text.Trim());
smRead.Close();
}
MessageBox.Show("完成");
2012-08-06
用OWC11 开发的Chart的一个userControl
只要把这个userControl添加到你的website里就可以用了。示例代码:
chart1.dataSource = 此处为一个Table。
chart1.Title = "IHC Notebook Products /VPM PSG Team Level of Availablity %(LOS)";
chart1.Caption_Y = "LOA";
chart1.Caption_X = "Week";
chart1.MajorUnit = 0.1;
chart1.NumberFormat = "0.00%";
List<string> lineColor = new List<string>();
lineColor.Add("red");
lineColor.Add("yellow");
lineColor.Add("blue");
chart1.LineColor = lineColor;
特别说明:要显示几条线就在LIST<STRING>里加几条颜色名。
2009-03-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人