增加最小化至托盘图标功能
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user