Exemplo n.º 1
0
 // Static factory
 public static ApplicationPage Get()
 {
     if ((instance == null) || (instance.manager == null) || (!Manager.Current.Disposed))
     {
         lock (synchronize)
         {
             if ((instance == null) || (instance.manager == null) || (!Manager.Current.Disposed))
             {
                 instance = new ApplicationPage(Application.Get().CurrentManager);
             }
         }
     }
     return(instance);
 }
Exemplo n.º 2
0
 public void DisposeInstance()
 {
     instance = null;
 }
Exemplo n.º 3
0
 public LoginPage Logout()
 {
     StartBrowser();
     ApplicationPage.Get().NavigateTo(applicationSources.GetLogoutUrl());
     return(new LoginPage(CurrentManager));
 }