Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
修改方法签名,修改 README 内容
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky8955555 committed Jul 12, 2021
1 parent e72583f commit 4080633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ SeewoHelper 是一个为**解决管理员在 Seewo 一体机上操作不便**而
## 功能

- 桌面整理
- 快捷电源控制

## TODO

- 便捷安装 Seewo 软件
- 快捷电源控制
- 一键关闭/重启 WPS 或 Office 进程
- 一键部署 [RemoteGenius](https://github.com/zi-jing/RemoteGenius) 的 Client 端
- 其他辅助功能……

本项目制作较为仓促,部分代码实现非常暴力,如有更好的处理方案,请 **发布 Issue****提交 Pull Request**
Expand Down
8 changes: 4 additions & 4 deletions src/Extensions/FormsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public static void Remove(this ListView.SelectedListViewItemCollection collectio
/// 设置文本
/// 若文本为 <see langword="null"/> 时显示默认文本并设置 <see cref="Control.Enabled"/> 为 <see langword="false"/>
/// </summary>
/// <param name="linkLabel"><see cref="LinkLabel"/> 实例</param>
/// <param name="control"><see cref="Control"/> 实例</param>
/// <param name="text">文本</param>
/// <param name="nullText">文本为 <see langword="null"/> 时显示的默认文本</param>
public static void SetText(this LinkLabel linkLabel, string text, string nullText)
public static void SetText(this Control control, string text, string nullText)
{
linkLabel.Text = text ?? nullText;
linkLabel.Enabled = text != null;
control.Text = text ?? nullText;
control.Enabled = text != null;
}
}
}

0 comments on commit 4080633

Please sign in to comment.