improve:计时器

This commit is contained in:
2025-10-06 20:11:49 +08:00
parent 7d5f037c85
commit 11da14aeab
3 changed files with 236 additions and 13 deletions
@@ -555,19 +555,6 @@ namespace Ink_Canvas
}
}
private void Fullscreen_Click(object sender, RoutedEventArgs e)
{
if (WindowState == WindowState.Normal)
{
WindowState = WindowState.Maximized;
}
else
{
WindowState = WindowState.Normal;
}
}
private void PlayTimerSound()
{
try
@@ -1014,5 +1001,20 @@ namespace Ink_Canvas
{
}
}
private void Fullscreen_Click(object sender, RoutedEventArgs e)
{
ShowFullscreenTimer();
}
private void ShowFullscreenTimer()
{
// 创建全屏计时器窗口
var fullscreenWindow = new FullscreenTimerWindow(this);
fullscreenWindow.Show();
// 隐藏主窗口
this.Hide();
}
}
}