麦田

不积跬步无以至千里.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年12月18日

摘要: Write multi-threaded demo program with C# language: two threads, you can start, you can pause, you can recove 阅读全文
posted @ 2012-12-18 22:24 一些记录 阅读(284) 评论(3) 推荐(0)

摘要: //添加引用using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;using System.Threading;using System.Collections; //定义变量private Thread convertThread;private Mutex mutex = ne 阅读全文
posted @ 2012-12-18 22:03 一些记录 阅读(627) 评论(0) 推荐(0)

摘要: 本文将为您介绍12个优秀的UML工具:1. StarUML StarUML(简称SU),是一种创建UML类图,是一种生成类图和其他类型的统一建模语言(UML)图表的工具。StarUML是一个开源项目之一发展快、灵活、可扩展性强(zj)。2. Netbeans UML Plugin 目前支持:Activity图, Class图, Sequence图, State图以及Use Case图。3. Acceleo Acceleo是一个开源的代码生成器设计成让每个人都能把MDA方法运用到开发过程中并且能够提高软件的开发效率。Acceleo包含一组工具和编辑器使得它易于学习而且适合任何类型的技术。4. A 阅读全文
posted @ 2012-12-18 21:50 一些记录 阅读(9891) 评论(0) 推荐(1)

摘要: using System;using System.Collections.Generic;using System.Text;namespace APlusEmail.Model{ public class EmailSendFeedBack { private bool isSuccess; public bool IsSuccess { get { return isSuccess; } set { isSuccess = value; } } private s... 阅读全文
posted @ 2012-12-18 17:31 一些记录 阅读(164) 评论(0) 推荐(0)

摘要: using System;using System.Collections.Generic;using System.Text;using APlusEmail.Quartz.EmailJob;using APlusEmail.Model;namespace APlusEmail.Quartz.Timer{ public class TimerManager { System.Timers.Timer t = new System.Timers.Timer(10000); //实例化Timer类,设置间隔时间为10000毫秒; public Timer... 阅读全文
posted @ 2012-12-18 17:14 一些记录 阅读(519) 评论(0) 推荐(0)

摘要: Select * From MAIN.[AP01SendQueue] where info = '立即' Limit 1000 阅读全文
posted @ 2012-12-18 10:59 一些记录 阅读(418) 评论(0) 推荐(0)

摘要: 在多线程或单线程任务中,让线程带传入参数一直是个麻烦的问题,通常有种方法就是以类,对像的变量来传参数,这种方法理解上很简单不过在某些场合使用很麻烦,这里就不介绍了,我们主要介绍一种.NET2.0中新增加的带参数运行线程的方法,示例程序如下:ParameterizedThreadStart ParStart = new ParameterizedThreadStart(ThreadMethod);Thread myThread = new Thread(ParStart);object o = “hello”;myThread.Start(o);ThreadMethod如下:public voi 阅读全文
posted @ 2012-12-18 10:24 一些记录 阅读(376) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2012-12-18 09:55 一些记录 阅读(307) 评论(1) 推荐(0)

摘要: 阅读全文
posted @ 2012-12-18 09:41 一些记录 阅读(135) 评论(0) 推荐(0)

摘要: if (e.Message.Contains("mail from address must be same as authorization")) { //该qq没开启smtp服务 } return false; 阅读全文
posted @ 2012-12-18 09:32 一些记录 阅读(199) 评论(0) 推荐(0)

摘要: 用qq邮箱发信的时候 遇到这样的exection"参数或变量中有语法错误. 服务器响应为: mail from address must be same as authorization user"解决方法是:打开qq开启smtp服务 阅读全文
posted @ 2012-12-18 09:26 一些记录 阅读(2338) 评论(0) 推荐(0)