摘要:
/// <summary> /// 根据excel列名获取索引,如A=>0,B=>1 /// </summary> /// <param name="columnName"></param> /// <returns></returns> static int GetExcelColIndex(st 阅读全文
摘要:
Photoshop支持使用脚本来批处理psd文件。此文章只是一些说明。 psd脚本包含三类:appleScript、VbScript、JavaScript js脚本后缀支持:.js或者.jsx。可以自动加载也可以手动加载 psd文档对象-包含关系:Application 包含DocumentColl 阅读全文
摘要:
1.摘要 在wpf里,显示文字我们一般用textblock或者label控件,而有时候需要显示一些文本滚动效果,比如:Led屏幕,文字自动滚屏。 这时候如果是wpf客户端的话,用textblock的时候文字绘制的效率很慢,且画面会卡顿现象,为了解决这个问题,本文将对文本显示及文本动画进行优化,达到流 阅读全文
摘要:
有时候我们想通过程序进行窗口的显示与隐藏,这时候只要简单地设置窗口样式即可(样式包括style和exStyle): //改变窗口样式和显示 var newStyle1 = WindowStyles1.WS_POPUP | WindowStyles1.WS_VISIBLE | WindowStyles 阅读全文
摘要:
1.需求 有这么一个需求,有一个声卡插件:ASIO4ALL v2.1,用户有一个程序,是通过这个插件来检验声音硬件,有时候有多个硬件要同时测试,想做个小程序来自动切换ASIO的当前项。如下图所示: 因此需求大概有如下: 能够自动切换ASIO插件对应的当前项 了解需求之后,感觉不算太难,安排。 2.分 阅读全文
摘要:
1. 104公约概况 使用tcp协议通信,标准tcp端口号是2404。服务端模拟软件可以使用gitbub上一个模拟器(IEC60870-5-104ServerSimulator.exe)。 2. 104公约数据结构 APCI Application Protocol Control Informat 阅读全文
摘要:
<Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200 阅读全文
摘要:
public partial class MainWindow : Window { private List<int> ShortTicks; private List<int> MiddleTicks; private List<int> LongTicks; private List<stri 阅读全文
摘要:
<UserControl x:Class="wpf刻度线.TickBar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
摘要:
if (File.Exists(fileName)) { File.Delete(fileName); using (FileStream fs = new FileStream(fileName, FileMode.Create)) { StreamResourceInfo resource = 阅读全文