using System;
|
using Shared;
|
using HDL_ON;
|
using HDL_ON.UI.CSS;
|
|
namespace HDL_ON
|
{
|
/// <summary>
|
/// HDLCommon
|
/// 暂时没用
|
/// </summary>
|
public class HDLCommon
|
{
|
#region ■ 变量声明___________________________
|
/// <summary>
|
/// 通用方法
|
/// </summary>
|
private static HDLCommon m_Current = null;
|
/// <summary>
|
/// 通用方法
|
/// </summary>
|
public static HDLCommon Current
|
{
|
get
|
{
|
if (m_Current == null)
|
{
|
m_Current = new HDLCommon();
|
}
|
return m_Current;
|
}
|
}
|
#endregion
|
|
#region ■ Alter弹窗提示_______________________
|
/// <summary>
|
/// 弹窗提示
|
/// </summary>
|
/// <param name="mes"></param>
|
public void ShowAlert(string mes)
|
{
|
new Alert("", mes, Language.StringByID(StringId.Close)).Show();
|
}
|
|
/// <summary>
|
/// 弹窗提示
|
/// </summary>
|
/// <param name="mes">弹窗提示信息</param>
|
/// <param name="okAction">确认按钮事件</param>
|
public void ShowActionAlert(string mes, Action okAction)
|
{
|
Alert alert = new Alert("", mes, Language.StringByID(StringId.Cancel), Language.StringByID(StringId.Confirm));
|
alert.ResultEventHandler += (sender2, e2) => {
|
if (e2)
|
{
|
okAction?.Invoke();
|
}
|
};
|
alert.Show();
|
}
|
|
#endregion
|
|
#region ■ 通用Dialog_______________________
|
|
#endregion
|
|
|
}
|
}
|