Exemplo n.º 1
0
 public static DesktopView GetInstance()
 {
     if (instance == null)
     {
         instance = new DesktopView();
     }
     return(instance);
 }
Exemplo n.º 2
0
        private void DesktopView_Click(object sender, EventArgs e)
        {
            DesktopView desktopView = DesktopView.GetInstance();

            desktopView.LoadView(new LoginView());

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