自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (5)
  • 收藏
  • 关注

空空如也

发热数据程序上报.zip

主要对XML文件进行加解密。保护重要信息(数据库连接账户和密码等配置信息) //解密XML文件 public static XmlDocument ReadFileXML(string mFilePath) { XmlDocument xmlDoc = new XmlDocument(); try { xmlDoc.PreserveWhitespace = true; xmlDoc.Load(mFilePath); } catch (Exception err) { return xmlDoc; } // Create a new TripleDES key. TripleDESCryptoServiceProvider tDESkey = new TripleDESCryptoServiceProvider(); tDESkey.Key = Convert.FromBase64String(Common.customKey); tDESkey.IV = Convert.FromBase64String(Common.customIV); tDESkey.Mode = CipherMode.ECB; tDESkey.Padding = PaddingMode.PKCS7; try { // Encrypt the "creditcard" element. // Common.Encrypt(xmlDoc, "Config", tDESkey); //Console.WriteLine("Encrypted XML:"); //Console.WriteLine(xmlDoc.OuterXml); //xmlDoc.Save(filePath); Common.Decrypt(xmlDoc, tDESkey); Console.WriteLine("Decrypted XML:"); Console.WriteLine(xmlDoc.OuterXml); //xmlDoc.Save(mFilePath); //读XML文件 } catch (Exception err) { //Console.WriteLine(e.Message); } finally { tDESkey.Clear(); } return xmlDoc; } //加密XML public static bool WriteFileXML(string mFilePath) { bool success = true; XmlDocument xmlDoc = new XmlDocument(); try { xmlDoc.PreserveWhitespace = true; xmlDoc.Load(mFilePath); } catch (Exception err) { success = false; return false; }

2021-05-13

ZedGraphDemo.zip

样例代码j包括实时曲线图,多种线性图集中显示以及柱形图、饼形图、线形图等使用和介绍,并有代码注解,非常适合学习者。 public partial class Form3 : Form { Random ran = new Random(); PointPairList list1 = new PointPairList(); PointPairList list2 = new PointPairList(); LineItem myCurve; public Form3() { InitializeComponent(); } private void Form3_Load(object sender, EventArgs e) { this.zedGraphControl1.GraphPane.Title.Text = "动态折线图"; this.zedGraphControl1.GraphPane.XAxis.Title.Text = "时间"; this.zedGraphControl1.GraphPane.YAxis.Title.Text = "数量"; this.zedGraphControl1.GraphPane.XAxis.Type = ZedGraph.AxisType.DateAsOrdinal; //开始的时候是空的,随着时间的推移才逐渐画满,可以在初始化的时候填几个Y坐标为0的点 for (int i = 0; i <= 1; i++) { double x = (double)new XDate(DateTime.Now.AddSeconds(-(100 - i))); double y = 0; // ran.NextDouble(); list1.Add(x, y); list2.Add(x, y+20); } DateTime dt = DateTime.Now; myCurve = zedGraphControl1.GraphPane.AddCurve("电压1", list1, Color.DarkGreen, SymbolType.None); zedGraphControl1.GraphPane.AddCurve("电压2", list2, Color.Red, SymbolType.None); this.zedGraphControl1.AxisChange(); this.zedGraphControl1.Refresh(); } private void timer1_Tick(object sender, EventArgs e) { //折线图内显示指定数量的点 if (list1.Count >= 100) { list1.RemoveAt(0); } if (list2.Count >= 100) { list2.RemoveAt(0); } zedGraphControl1.GraphPane.XAxis.Scale.MaxAuto = true; double x = (double)new XDate(DateTime.Now); double y = ran.Next(100, 120); double y2 = ran.Next(90, 150); // int RandKey = ran.Next(100, 999); list1.Add(x, y);

2021-05-13

硬盘测试故障软件

硬盘测试故障软件,可以检测出硬盘的健康状态和工作时间

2013-01-22

delphi xe2 activator

delphi xe2 activator 经本人测试完全可以。破解DELPHI XE2开发平台

2013-01-22

NETBEANS VISUAL WEB PACK 教程

NETBEANS JSF设计学习资料

2007-11-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除