コード例 #1
0
        public static void SetActive <T>(string key, bool isActive)
        {
            string name = typeof(T).FullName;

            IMediator meditor = mFacade.GetMediator(name);

            if (meditor == null)
            {
                return;
            }

            ViewBaseMediator baseMediator = meditor as ViewBaseMediator;

            baseMediator.DoActive(key, isActive);
        }
コード例 #2
0
        public static void Open <T>(string key, System.Object param)
        {
            string name = typeof(T).FullName;

            IMediator meditor = mFacade.GetMediator(name);

            if (meditor == null)
            {
                return;
            }

            ViewBaseMediator baseMediator = meditor as ViewBaseMediator;

            baseMediator.DoOpen(key, param);
        }
コード例 #3
0
        public static void Close <T>()
        {
            string name = typeof(T).FullName;

            IMediator meditor = mFacade.GetMediator(name);

            if (meditor == null)
            {
                return;
            }

            ViewBaseMediator baseMediator = meditor as ViewBaseMediator;

            baseMediator.DoClose();
        }
コード例 #4
0
        public static void CloseAll()
        {
            int count = mViewList.Count;

            if (count == 0)
            {
                return;
            }

            for (int i = 0; i < count; ++i)
            {
                string    name    = mViewList[i];
                IMediator meditor = mFacade.GetMediator(name);
                if (meditor == null)
                {
                    continue;
                }

                ViewBaseMediator baseMediator = meditor as ViewBaseMediator;
                baseMediator.DoClose();
            }

            mOpenQueue.Clear();
        }