public static MobileView GetInstance() { if (instance == null) { instance = new MobileView(); } return(instance); }
private void MobileView_Click(object sender, EventArgs e) { MobileView mobileView = MobileView.GetInstance(); mobileView.LoadView(new LoginViewMobile(), "Login"); Hide(); mobileView.ShowDialog(); userSession.Logout(); Show(); }