public static TabBarCustomer GetInstance() { if (_instance == null) { User user = DataProvider.GetInstance().GetUserByIDUser(Infor.IDUser); _instance = new TabBarCustomer(); } return(_instance); }
public void GoHome() { var tabbar = TabBarCustomer.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; }