Esempio n. 1
0
 public static MobileView GetInstance()
 {
     if (instance == null)
     {
         instance = new MobileView();
     }
     return(instance);
 }
Esempio n. 2
0
        private void MobileView_Click(object sender, EventArgs e)
        {
            MobileView mobileView = MobileView.GetInstance();

            mobileView.LoadView(new LoginViewMobile(), "Login");

            Hide();
            mobileView.ShowDialog();
            userSession.Logout();
            Show();
        }