01 2020 档案
摘要:Console.WriteLine("Ports:"); foreach (var item in SerialPortService.SerialPortNames) { Console.Write("\t{0}", item); } Console.WriteLine(); SerialPort
阅读全文
摘要:delegate、Action、Function、EventHandler
阅读全文
摘要:using System.Diagnostics; 以静默方式运行bat脚本 Console.WriteLine("同步执行"); Console.WriteLine(CMDHelper.CMDExecute("TimeStampVerificationCode.bat")); Console.Wr
阅读全文
摘要:FileHelper, FileContentTypeHelper, FileEntity
阅读全文
摘要:需要内部控件实现滚动的控件(比如treeview1中的内容超过面板大小时,滚动条会自动出现,鼠标在控件内部内容上时),鼠标滚轮滚动无效。 滚动条嵌套响应鼠标滑轮事件的处理,由于xaml前台绑定时触发不了MouseWheel事件,需要在构造函数中引发鼠标滚轮的路由事件。 public UC_XXXXX
阅读全文
摘要:ZipArchiveHelper
阅读全文
摘要:窗体、控件句柄 窗体句柄: IntPtr hwnd = new WindowInteropHelper(this).Handle; 控件句柄: IntPtr hwnd = ((HwndSource)PresentationSource.FromVisual(uielement)).Handle; 不
阅读全文
摘要:屏幕工作区右下角 NewWindow win = new NewWindow(arg1, arg2); win.WindowStartupLocation = WindowStartupLocation.Manual; win.Left = SystemParameters.WorkArea.Wid
阅读全文

浙公网安备 33010602011771号