fix: 精简优化代码

This commit is contained in:
2026-01-18 20:41:10 +08:00
parent 4ef611dc21
commit 4b5609d275
3 changed files with 18 additions and 62 deletions

View File

@@ -161,14 +161,6 @@ namespace TimerApp
}
}
// 用于强制重置或测试
public void ForceRest()
{
_restElapsedSeconds = 0; // 重置休息计数器
ChangeState(MonitorState.Resting);
RestStarted?.Invoke(this, EventArgs.Empty);
}
public void RefreshStatus()
{
if (CurrentState == MonitorState.Working)