Beispiel #1
0
 //这里必须调用View
 public void Close(FView view, bool isDisposed = true)
 {
     if (view != null)
     {
         Type     type     = __GetViewKey(view);
         ViewInfo viewInfo = null;
         if (m_viewsMap.TryGetValue(type, out viewInfo))
         {
             if (isDisposed)
             {
                 m_viewsMap.Remove(type);
             }
         }
         view.__CloseByManager(isDisposed);
     }
 }
Beispiel #2
0
        public void Close(Type type, bool isDisposed = true)
        {
            ViewInfo viewInfo = null;

            if (m_viewsMap.TryGetValue(type, out viewInfo))
            {
                if (!viewInfo.isPerpetual)  //不可以被Close
                {
                    FView view = viewInfo.view;
                    if (viewInfo.isResident)//常驻View不应该被移除,直接隐藏
                    {
                        isDisposed = false;
                    }

                    view.__CloseByManager(isDisposed);
                }
            }
        }