Skip to content

Commit

Permalink
Update SystemServiceManager.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinerising authored Aug 18, 2023
1 parent 132aa63 commit 2b7525c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions SystemServiceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

namespace NetSpector
{
/// <summary>
/// Windows服务描述
/// </summary>
public class ServiceItem : INotifyPropertyChanged
{
/// <summary>
Expand All @@ -32,12 +35,33 @@ protected void Notify<T>(T obj)
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(property.Name));
}
}
/// <summary>
/// 项目名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 服务摘要
/// </summary>
public string Description { get; set; }
/// <summary>
/// Windows服务注册名
/// </summary>
public string ServiceName { get; set; }
/// <summary>
/// 服务是否存在
/// </summary>
public bool IsValid { get; set; } = false;
/// <summary>
/// 服务是否启用
/// </summary>
public bool IsEnabled { get; set; } = false;
/// <summary>
/// 服务默认启动方式
/// </summary>
public int DefaultValue { get; set; }
/// <summary>
/// 刷新状态
/// </summary>
public void Refresh()
{
Notify(new { IsValid, IsEnabled });
Expand Down

0 comments on commit 2b7525c

Please sign in to comment.