摘要: ``` private byte[] FileContent(string fileName) { using (FileStream fs = new FileStream(fileName, FileMode.Open, FileAccess.R... 阅读全文
posted @ 2015-06-30 16:56 wardensky 阅读(7474) 评论(0) 推荐(2) 编辑
摘要: 在做winform程序的时候,有时候需要客户只能起一个进程,不能起多个进程,用如下代码可以实现。``` internal static class Program { private static Mutex onlyOne; /// /// ... 阅读全文
posted @ 2015-06-30 16:50 wardensky 阅读(540) 评论(0) 推荐(0) 编辑