public static TabbarStoreManager GetInstance() { if (_instance == null) { _instance = new TabbarStoreManager(); } return(_instance); }
public void GoHome() { var tabbar = TabbarStoreManager.GetInstance(); if (tabbar.CurrentPage == tabbar.Children[0]) { //System.Diagnostics.Process.GetCurrentProcess().CloseMainWindow(); //System.Environment.Exit(0); } tabbar.CurrentPage = tabbar.Children[0]; }
public static void Destroy() { _instance = null; }