You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.7 KiB
C#
50 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static Rs.MotionPlat.Commom.SchedulingMessageBox;
|
|
|
|
namespace Rs.MotionPlat.Commom
|
|
{
|
|
public static class MessageButtonManager
|
|
{
|
|
/// <summary>
|
|
/// 获取含有重试、跳过、移动到安全位的按钮文本
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static Dictionary<ETipButton,string> GetRetry_Skip_MoveToSafe_ButtonText()
|
|
{
|
|
Dictionary<ETipButton, string> buttonText = new Dictionary<ETipButton, string>() {
|
|
{ ETipButton.Retry,"重试|Retry"},
|
|
{ ETipButton.Skip,"跳过|Skip"},
|
|
{ ETipButton.Yes,"移动到安全位|MovetoSafePos"}
|
|
};
|
|
return buttonText;
|
|
}
|
|
|
|
public static ETipButton GetRetry_Skip_MoveToSafe_Button()
|
|
{
|
|
return ETipButton.Retry | ETipButton.Skip | ETipButton.Yes;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取含有跳过、移动到安全位的按钮文本
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static Dictionary<ETipButton, string> GetSkip_MoveToSafe_ButtonText()
|
|
{
|
|
Dictionary<ETipButton, string> buttonText = new Dictionary<ETipButton, string>() {
|
|
{ ETipButton.Skip,"跳过|Skip"},
|
|
{ ETipButton.Yes,"移动到安全位|MovetoSafePos"}
|
|
};
|
|
return buttonText;
|
|
}
|
|
|
|
public static ETipButton GetSkip_MoveToSafe_Button()
|
|
{
|
|
return ETipButton.Skip | ETipButton.Yes;
|
|
}
|
|
}
|
|
}
|