コード例 #1
0
 /// <summary>
 /// 创建事件
 /// </summary>
 /// <param name="source">源</param>
 /// <param name="message">消息</param>
 /// <param name="type">事件类型</param>
 /// <param name="screenshot">是否截屏</param>
 /// <param name="snapshot">是否进行快照</param>
 /// <returns></returns>
 public EventInfo(string type
                  , string message
                  , bool screenshot = false
                  , bool snapshot   = false)
 {
     Source        = "PAO";
     Time          = DateTime.Now;
     Message       = message;
     Type          = type;
     ScreenShot    = screenshot ? UIPublic.ScreenShot() : (Image)null;
     AssetSnapshot = snapshot ? IOPublic.ObjectClone(PaoApplication.Default) : null;
 }