增加最小化至托盘图标功能

This commit is contained in:
ww-rm
2025-09-30 01:53:14 +08:00
parent 8c3be98b54
commit bb2862ed4f
13 changed files with 90 additions and 30 deletions

View File

@@ -28,10 +28,16 @@ namespace SpineViewer.Services
MessageBox.Show(text, title, MessageBoxButton.OK, MessageBoxImage.Error);
}
public static bool Quest(string text, string? title = null)
public static bool OKCancel(string text, string? title = null)
{
title ??= AppResource.Str_QuestPopup;
return MessageBox.Show(text, title, MessageBoxButton.OKCancel, MessageBoxImage.Question) == MessageBoxResult.OK;
}
public static bool YesNo(string text, string? title = null)
{
title ??= AppResource.Str_QuestPopup;
return MessageBox.Show(text, title, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes;
}
}
}