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); }
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); }
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(); }
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(); }