diff --git a/MainForm.cs b/MainForm.cs index e12cb2a..4882b49 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -494,6 +494,8 @@ namespace TimerApp _restForm.SkipRequested += RestForm_SkipRequested; } + // 初始化显示时间,避免显示默认值 + _restForm.UpdateTime(_monitor.RestDuration); _restForm.Show(); } diff --git a/RestForm.cs b/RestForm.cs index fb219c1..2a2c4f1 100644 --- a/RestForm.cs +++ b/RestForm.cs @@ -63,7 +63,7 @@ namespace TimerApp // 初始大小,会在CenterControls中动态调整 this.lblTimer.Size = new System.Drawing.Size(400, 180); this.lblTimer.TabIndex = 1; - this.lblTimer.Text = "01:00"; + this.lblTimer.Text = "--:--"; this.lblTimer.TextAlign = ContentAlignment.MiddleCenter; //