예제 #1
0
 public static DomainProviderUI GetDomainProviderUI()
 {
     lock(typeof(DomainProviderUI))
        {
     if (instance == null)
      instance = new DomainProviderUI();
     return instance;
        }
 }
예제 #2
0
        /// <summary>
        /// Get Domain Provider UI
        /// </summary>
        /// <returns>DomainProviderUI</returns>
        static public DomainProviderUI GetDomainProviderUI()
        {
            lock (typeof(DomainProviderUI))
            {
                if (instance == null)
                {
                    instance = new DomainProviderUI();
                }

                return(instance);
            }
        }
예제 #3
0
 public PrefsAccountsPage( Gtk.Window topWindow )
     : base()
 {
     this.topLevelWindow = topWindow;
        this.simiasManager = Util.GetSimiasManager();
        string localServiceUrl = simiasManager.WebServiceUri.ToString();
        ifws = new iFolderWebService();
        ifws.Url = localServiceUrl + "/iFolder.asmx";
        LocalService.Start(ifws, simiasManager.WebServiceUri, simiasManager.DataPath);
        this.simws = new SimiasWebService();
        simws.Url = simiasManager.WebServiceUri.ToString() +
      "/Simias.asmx";
        LocalService.Start(simws, simiasManager.WebServiceUri, simiasManager.DataPath);
        ClientUpgradeDialog = null;
        this.ClientUpgradeStatus = null;
        this.NewClientVersion = null;
        this.NewClientDomainID = null;
        curDomains = new Hashtable();
        removedDomains = new Hashtable();
        InitializeWidgets();
        domainProviderUI = DomainProviderUI.GetDomainProviderUI();
        domainController = DomainController.GetDomainController();
        if (domainController != null)
        {
     domainController.DomainAdded +=
      new DomainAddedEventHandler(OnDomainAddedEvent);
     domainController.DomainDeleted +=
      new DomainDeletedEventHandler(OnDomainDeletedEvent);
     domainController.DomainLoggedIn +=
      new DomainLoggedInEventHandler(OnDomainLoggedInEvent);
     domainController.DomainLoggedOut +=
      new DomainLoggedOutEventHandler(OnDomainLoggedOutEvent);
     domainController.DomainActivated +=
      new DomainActivatedEventHandler(OnDomainActivatedEvent);
     domainController.DomainInactivated +=
      new DomainInactivatedEventHandler(OnDomainInactivatedEvent);
     domainController.NewDefaultDomain +=
      new DomainNewDefaultEventHandler(OnNewDefaultDomainEvent);
     domainController.DomainInGraceLoginPeriod +=
      new DomainInGraceLoginPeriodEventHandler(OnDomainInGraceLoginPeriodEvent);
     domainController.DomainClientUpgradeAvailable +=
      new DomainClientUpgradeAvailableEventHandler(OnClientUpgradeAvailableEvent);
        }
        detailsDialogs = new Hashtable();
        this.Realized += new EventHandler(OnRealizeWidget);
 }