摘要: public static class ServiceHelper { [DllImport("advapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern Boolean ChangeSer 阅读全文
posted @ 2019-01-21 09:52 小丑不悲伤 阅读(453) 评论(0) 推荐(0)
摘要: var dialog = new System.Windows.Forms.OpenFileDialog(); dialog.Filter = "图片文件(*.jpg;*.png;*.jpeg)|*.jpg;*.png;*.jpeg"; dialog.ValidateNames = true; di 阅读全文
posted @ 2019-01-07 11:35 小丑不悲伤 阅读(291) 评论(0) 推荐(0)
摘要: //当前滚动条位置 ScrollViewer sv = GetChildObject<ScrollViewer>(ctlIPBedCardListBox, "s"); var currentScrollPosition = sv.VerticalOffset; var point = new Poi 阅读全文
posted @ 2017-12-17 23:01 小丑不悲伤 阅读(215) 评论(0) 推荐(0)
摘要: public bool DataSetToExcel(DataSet dataSet, string fileName, bool isShowExcle) { if (File.Exists(fileName)) { File.Delete(fileName); } DataTable data... 阅读全文
posted @ 2015-01-04 11:19 小丑不悲伤 阅读(146) 评论(0) 推荐(0)