result.cs
资源名称:08.zip [点击查看]
上传用户:ynjin1970
上传日期:2014-10-13
资源大小:6438k
文件大小:1k
源码类别:
中间件编程
开发平台:
Visual C++
- using System;
- using System.Collections ; // ArrayList
- namespace WebApplication1
- {
- /// <summary>
- ///
- /// </summary>
- public class result
- {
- public result()
- {
- //
- // TODO: 在此处添加构造函数逻辑
- //
- }
- private string _label="";
- private string _message="";
- private ArrayList _links= new ArrayList();
- private bool _isCompleted =false;
- private DateTime _started;
- private DateTime _done;
- public string label
- {
- get{ return _label;}
- }
- public string message
- {
- get{ return _message;}
- set { _message=value;}
- }
- public ArrayList links
- {
- get{ return _links;}
- }
- public bool isCompleted
- {
- get{ return _isCompleted;}
- set
- {
- _isCompleted=value;
- _done=DateTime.Now;
- }
- }
- public TimeSpan timeSpent
- {
- get{ return _done.Subtract(_started);}
- }
- public result(string pLabel)
- {
- _started=DateTime.Now;
- _label=pLabel;
- }
- }
- }