Esempio n. 1
0
        public static void OpenUIForm(this IUIManager uiManager, int uiFormId, object userData = null)
        {
            Guard.Verify <LogicException>(GetUIFormInfo == null, "Must transfer the Extend() method before GetUIFormInfo() method.");

            UIFormInfo uiFormInfo = GetUIFormInfo(uiFormId);

            if (uiManager.HasUIForm(uiFormInfo.AssetName))
            {
                return;
            }

            uiManager.OpenUIForm(uiFormInfo.AssetName, uiFormInfo.UIGroupName, uiFormInfo.UIGroupDepth, uiFormInfo.PauseCoveredUIForm, userData);
        }
Esempio n. 2
0
        public static bool HasUIForm <T>(this IUIManager uiManager, int uiFormId, string uiGroupName = null) where T : IDataRow
        {
            Guard.Verify <LogicException>(GetUIFormInfo == null, "Must transfer the Extend() method before GetUIFormInfo() method.");

            UIFormInfo uiFormInfo = GetUIFormInfo(uiFormId);

            if (string.IsNullOrEmpty(uiGroupName))
            {
                return(uiManager.HasUIForm(uiFormInfo.AssetName));
            }

            IUIGroup uiGroup = uiManager.GetUIGroup(uiGroupName);

            if (uiGroup == null)
            {
                return(false);
            }

            return(uiGroup.HasUIForm(uiFormInfo.AssetName));
        }
Esempio n. 3
0
 /// <summary>
 /// 界面组中是否存在界面。
 /// </summary>
 /// <param name="uiFormTypeId">界面类型编号。</param>
 /// <param name="uiGroupName">界面组名称。</param>
 /// <returns>界面组中是否存在界面。</returns>
 public bool HasUIForm(int uiFormTypeId, string uiGroupName)
 {
     return(m_UIManager.HasUIForm(uiFormTypeId, uiGroupName));
 }
Esempio n. 4
0
 /// <summary>
 /// 是否存在界面。
 /// </summary>
 /// <param name="serialId">界面序列编号。</param>
 /// <returns>是否存在界面。</returns>
 public bool HasUIForm(int serialId)
 {
     return(m_UIManager.HasUIForm(serialId));
 }