跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

AppActiveChangedEventArgs.cs

34 行 · 854 B历史下载
1using Core.Models.AppObserver;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace Core.Event
9{
10 /// <summary>
11 /// 应用活跃状态变更事件参数
12 /// </summary>
13 public class AppActiveChangedEventArgs
14 {
15 /// <summary>
16 /// 激活时间
17 /// </summary>
18 public DateTime ActiveTime { get; }
19 /// <summary>
20 /// 应用信息
21 /// </summary>
22 public AppInfo App { get; }
23 /// <summary>
24 /// 窗口信息
25 /// </summary>
26 public WindowInfo Window { get; }
27 public AppActiveChangedEventArgs(AppInfo app_, WindowInfo window_, DateTime activeTime_)
28 {
29 App = app_;
30 Window = window_;
31 ActiveTime = activeTime_;
32 }
33 }
34}