private static void OpenPageWork(string pageName, object args = null) { _curPage = new PageTrack { Name = pageName }; CloseAll(); InternalOpen(pageName, args); }
private static void OpenPage(string pageName, object arg = null, bool destroyPrevPage = false) { if (_curPage != null) { UIPages.Push(_curPage); } if (UIPages.Count != 0) { PageTrack pageTrack = UIPages.Peek(); Close(pageTrack.Name, destroyPrevPage); if (destroyPrevPage) { UIPages.Pop(); } } OpenPageWork(pageName, arg); }