随笔分类 -  CommonUtil

保存一下常用类库
摘要:刷机教程 http://wenku.baidu.com/view/4ab6238d680203d8ce2f2450.html刷机包 联系本人 发送708895310 阅读全文
posted @ 2011-12-26 17:01 Wythe 阅读(158) 评论(0) 推荐(0) 编辑
摘要:public class MessageUtil { /// <summary> /// 显示一般的提示信息 /// </summary> /// <param name="message">提示信息</param> public static DialogResult ShowTips(string message) { return MessageBox.Show(message, "提示信息",MessageBoxButtons.OK, MessageBoxIcon.Info... 阅读全文
posted @ 2011-11-23 08:53 Wythe 阅读(515) 评论(0) 推荐(1) 编辑
摘要:1,指定的word模版2,生成word类添加com Microsoft word 11.0 Object Library 引用using System;using System.Collections.Generic;using System.Data;using System.Windows.Forms;using Word = Microsoft.Office.Interop.Word;using System.IO;namespace Headfree.DefUI{ public class WordUtility { private object tempFi... 阅读全文
posted @ 2011-11-22 14:45 Wythe 阅读(13292) 评论(4) 推荐(2) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO.Pipes;using System.Security.Principal;namespace TopInfo.Metevation.Common{ public class PipeMessageUtil { private const string PipeName = "TopInfoPipe"; public static bool NeedSendMessage = fa 阅读全文
posted @ 2011-05-20 16:35 Wythe 阅读(3665) 评论(1) 推荐(0) 编辑
摘要:public class SystemEventLog { private static EventLog mLog; /// <summary> /// 返回操作Windows日志的类。 /// </summary> public static EventLog Log { get { if (mLog == null) { InitSystemEventLog(); } return mLog; } } /// <summary> /// 初始化系统事件日志 /// </summary> private static void InitSys 阅读全文
posted @ 2011-05-20 13:38 Wythe 阅读(347) 评论(0) 推荐(0) 编辑