2020年7月16日
摘要: /// <summary> /// 将本程序设为开启自启 /// </summary> /// <param name="onOff">自启开关</param> /// <returns></returns> public static bool SetMeStart(bool onOff) { b 阅读全文
posted @ 2020-07-16 20:55 Lionever 阅读(413) 评论(0) 推荐(0)
  2020年7月9日
摘要: 终身成长 1、成长的美学特征是相信累积的效应2、失败只是一种方法的结果, 他是为你走向另一条路径提供依据。3、做最好的自己而不是强于他人。4、夸奖人努力而不是夸奖人的天赋,因为天赋不是每个人所能决定的,夸奖他人努力会使他更加努力,不论天赋如何,所以知道应该如何表扬你的孩子。5、不要去评判,而要去教导 阅读全文
posted @ 2020-07-09 10:50 Lionever 阅读(129) 评论(0) 推荐(0)
  2019年12月29日
摘要: public static bool cdir(string xmmc) { bool flag = false; DirectoryInfo aimpath = new DirectoryInfo(@"\\192.168.1.217\共享文件夹 "); if (connectstat(aimpat 阅读全文
posted @ 2019-12-29 15:09 Lionever 阅读(942) 评论(0) 推荐(0)
摘要: 一、查 SqlConnection conn = new SqlConnection(); conn.ConnectionString = sqlb.ConnectionString; conn.Open(); string sqlstr=""; SqlDataAdapter adap = new 阅读全文
posted @ 2019-12-29 15:05 Lionever 阅读(2683) 评论(0) 推荐(0)
摘要: 一、 DATAGRIDVIEW 数值传递给datable int cn = dataGridView1.Rows.Count; int col = dataGridView1.ColumnCount; for (int j = 0; j < col;j++ ) { DataColumn dc = n 阅读全文
posted @ 2019-12-29 14:55 Lionever 阅读(4604) 评论(0) 推荐(0)
摘要: bool flag = false; Process pro = new Process(); try { pro.StartInfo.FileName = "cmd.exe"; pro.StartInfo.UseShellExecute = false; pro.StartInfo.Redirec 阅读全文
posted @ 2019-12-29 14:48 Lionever 阅读(2097) 评论(0) 推荐(0)
摘要: SqlConnectionStringBuilder sqlb = new SqlConnectionStringBuilder(); sqlb.DataSource = "ip address"; sqlb.InitialCatalog = "databasename"; sqlb.UserID 阅读全文
posted @ 2019-12-29 14:45 Lionever 阅读(414) 评论(0) 推荐(0)
  2019年11月22日
摘要: private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { System.Environment.Exit(0); } 阅读全文
posted @ 2019-11-22 18:22 Lionever 阅读(881) 评论(0) 推荐(0)
  2019年5月7日
摘要: SELECT CASE field0010 WHEN '计划' THEN 1 ELSE 2 END AS s FROM formmain_5991 SELECT CASE WHEN (IFNULL(o.ENDTIME,99))=99 THEN (CASE WHEN (CURDATE()-pc.FORECASTTIME)>0 THEN (CASE W... 阅读全文
posted @ 2019-05-07 15:02 Lionever 阅读(552) 评论(0) 推荐(0)
  2019年1月22日
摘要: 1 using System; 2 3 using Autodesk.AutoCAD.DatabaseServices; 4 using Autodesk.AutoCAD.Geometry; 5 using Autodesk.AutoCAD.Runtime; 6 7 [assembly: CommandClass(typeof(Sample.AddBlock))] 8 nam... 阅读全文
posted @ 2019-01-22 15:54 Lionever 阅读(1093) 评论(0) 推荐(0)